An issue was discovered in Nginx NJS v0.7.5. The JUMP offset for a break instruction was not set to a correct offset during code generation, leading to a segmentation violation.
[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-35173-4378f8a0",
"signature_type": "Function",
"digest": {
"length": 1546.0,
"function_hash": "304029516047076007140133536908263875321"
},
"source": "https://github.com/nginx/njs/commit/404553896792b8f5f429dc8852d15784a59d8d3e",
"target": {
"function": "njs_generate_try_end",
"file": "src/njs_generator.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-35173-489a113a",
"signature_type": "Line",
"digest": {
"line_hashes": [
"224699747579391325238831959343261633136",
"52056593301345868156133187946512523968",
"185166471147926133279267508134815891530",
"223962460441088112010421191931167778567",
"111285792979142093917006186897021375080",
"11419336829417016789537071884973585241",
"108587633537507210242609878158511307392",
"253754656440548818088749855167038233632",
"119396003708655793939043004706493753335",
"202894104238663237536306831230273595496",
"304285341048027117825203959884466812487",
"261703387443705524283148283861347027165",
"223962460441088112010421191931167778567",
"111285792979142093917006186897021375080",
"11419336829417016789537071884973585241",
"321650022450988414625152546050505572726"
],
"threshold": 0.9
},
"source": "https://github.com/nginx/njs/commit/404553896792b8f5f429dc8852d15784a59d8d3e",
"target": {
"file": "src/njs_generator.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-35173-e548101c",
"signature_type": "Function",
"digest": {
"length": 1199.0,
"function_hash": "308183539393987763383279632380141094769"
},
"source": "https://github.com/nginx/njs/commit/404553896792b8f5f429dc8852d15784a59d8d3e",
"target": {
"function": "njs_generate_try_catch",
"file": "src/njs_generator.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2022-35173-f5a9baa4",
"signature_type": "Line",
"digest": {
"line_hashes": [
"68824721654271214470007509025733089349",
"119537499777861277673241192577645023772",
"46047927877222704196910641765542344296",
"215122680273465019952994184342902706408",
"236361956205353044532968203584505879341"
],
"threshold": 0.9
},
"source": "https://github.com/nginx/njs/commit/404553896792b8f5f429dc8852d15784a59d8d3e",
"target": {
"file": "src/test/njs_unit_test.c"
}
}
]