CVE-2022-31307

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

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31307.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
0.7.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31307.json"
vanir_signatures_modified
"2026-07-22T02:07:11Z"
vanir_signatures
[
    {
        "target": {
            "file": "src/njs_iterator.c",
            "function": "njs_object_iterate_reverse"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-31307-1f6846bf",
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "digest": {
            "function_hash": "103444818782418243579072543539988804643",
            "length": 2727.0
        }
    },
    {
        "target": {
            "file": "src/njs_iterator.c"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-31307-6ec364fd",
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "digest": {
            "line_hashes": [
                "31332087060590309975530342363338135404",
                "81384505419341664089187724240160896991",
                "279086156151675448253248787254774324798",
                "229719608985720382728834512096249842775",
                "307488796212254766280894295833538516605",
                "102801281721691388712997364811092385682"
            ],
            "threshold": 0.9
        }
    },
    {
        "target": {
            "file": "src/test/njs_unit_test.c"
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-31307-9585d335",
        "signature_version": "v1",
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "digest": {
            "line_hashes": [
                "270962405635539349045306700829155569547",
                "46702355503848243507095770144150209238",
                "322332007203446702768211235095523626994"
            ],
            "threshold": 0.9
        }
    }
]