CVE-2022-31306

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31306
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-31306.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-31306
Published
2022-06-21T13:15:08Z
Modified
2025-10-15T13:58:59.567790Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/nginx/njs

Affected ranges

Type
GIT
Repo
https://github.com/nginx/njs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.0
0.1.1
0.1.10
0.1.11
0.1.12
0.1.13
0.1.14
0.1.15
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.3.7
0.3.8
0.3.9
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.5.0
0.5.1
0.5.2
0.5.3
0.6.0
0.6.1
0.6.2
0.7.0
0.7.1
0.7.2
0.7.3

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "339780529824448762995081143268585307509",
                "307618025260381001810494025737045594026",
                "172528107696331865071435248872457299656"
            ]
        },
        "target": {
            "file": "src/njs_array.c"
        },
        "id": "CVE-2022-31306-28554a97"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "signature_type": "Function",
        "digest": {
            "function_hash": "215556108678597644341992690666548962217",
            "length": 534.0
        },
        "target": {
            "file": "src/njs_array.c",
            "function": "njs_array_convert_to_slow_array"
        },
        "id": "CVE-2022-31306-4b4f7ba4"
    },
    {
        "signature_version": "v1",
        "deprecated": false,
        "source": "https://github.com/nginx/njs/commit/81af26364c21c196dd21fb5e14c7fa9ce7debd17",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "190712008055766476213710584150190909322",
                "278877165799828088263803208765066226626",
                "22499050152622226168925891562274199600"
            ]
        },
        "target": {
            "file": "src/test/njs_unit_test.c"
        },
        "id": "CVE-2022-31306-fb559019"
    }
]