CVE-2022-27007

Source
https://cve.org/CVERecord?id=CVE-2022-27007
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27007.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-27007
Published
2022-04-14T14:08:19Z
Modified
2026-07-22T02:24:44.825377Z
Summary
[none]
Details

nginx njs 0.7.2 is affected suffers from Use-after-free in njsfunctionframealloc() when it try to invoke from a restored frame saved with njsfunctionframesave().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/27xxx/CVE-2022-27007.json",
    "cna_assigner": "mitre"
}
References

Affected packages

Git / github.com/nginx/njs

Affected ranges

Type
GIT
Repo
https://github.com/nginx/njs
Events
Database specific
{
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0.7.2"
        },
        {
            "last_affected": "0.7.2"
        }
    ],
    "cpe": "cpe:2.3:a:f5:njs:0.7.2:*:*:*:*:*:*:*"
}

Affected versions

0.*
0.7.2

Database specific

vanir_signatures_modified
"2026-07-22T02:24:44Z"
vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "file": "src/njs_function.c"
        },
        "id": "CVE-2022-27007-7ea5bcb3",
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "138421633129488864937735872599000506234",
                "27039259651221790653411306071683155797",
                "331539492576269881793117942121947427386",
                "329790762949194910835705026888280855784",
                "127358985363884583393220151483745842230",
                "61914521830780938963912752065750193512"
            ]
        },
        "source": "https://github.com/nginx/njs/commit/ad48705bf1f04b4221a5f5b07715ac48b3160d53"
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "src/njs_function.c",
            "function": "njs_function_frame_save"
        },
        "id": "CVE-2022-27007-a72d8ace",
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "function_hash": "254256718481189875352576299876034585016",
            "length": 992.0
        },
        "source": "https://github.com/nginx/njs/commit/ad48705bf1f04b4221a5f5b07715ac48b3160d53"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-27007.json"