Nginx NJS v0.7.2 was discovered to contain a segmentation violation in the function njsarrayconverttoslowarray at src/njsarray.c.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31306.json",
"cna_assigner": "mitre"
}[
{
"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"
]
}
}
]
"2026-07-22T02:07:10Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31306.json"