CVE-2022-31306

Source
https://cve.org/CVERecord?id=CVE-2022-31306
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31306.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31306
Published
2022-06-21T12:57:30Z
Modified
2026-07-22T02:07:10.535483Z
Summary
[none]
Details

Nginx NJS v0.7.2 was discovered to contain a segmentation violation in the function njsarrayconverttoslowarray at src/njsarray.c.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31306.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
{
    "cpe": "cpe:2.3:a:f5:njs:0.7.2:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0.7.2"
        },
        {
            "last_affected": "0.7.2"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

0.*
0.7.2
0.7.3

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "deprecated": false,
        "target": {
            "file": "src/njs_array.c"
        },
        "id": "CVE-2022-31306-28554a97",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "339780529824448762995081143268585307509",
                "307618025260381001810494025737045594026",
                "172528107696331865071435248872457299656"
            ]
        }
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "deprecated": false,
        "target": {
            "file": "src/njs_array.c",
            "function": "njs_array_convert_to_slow_array"
        },
        "id": "CVE-2022-31306-4b4f7ba4",
        "signature_type": "Function",
        "digest": {
            "length": 534.0,
            "function_hash": "215556108678597644341992690666548962217"
        }
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "deprecated": false,
        "target": {
            "file": "src/test/njs_unit_test.c"
        },
        "id": "CVE-2022-31306-fb559019",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "190712008055766476213710584150190909322",
                "278877165799828088263803208765066226626",
                "22499050152622226168925891562274199600"
            ]
        }
    }
]
vanir_signatures_modified
"2026-07-22T02:07:10Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31306.json"