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-08-12T13:32:31.414287Z
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
Show details
{
    "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_modified
"2026-08-12T13:32:31Z"
vanir_signatures
[
    {
        "id": "CVE-2022-31307-1f6846bf",
        "deprecated": false,
        "signature_type": "Function",
        "signature_version": "v1",
        "digest": {
            "length": 2727.0,
            "function_hash": "103444818782418243579072543539988804643"
        },
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "target": {
            "function": "njs_object_iterate_reverse",
            "file": "src/njs_iterator.c"
        }
    },
    {
        "id": "CVE-2022-31307-6ec364fd",
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "31332087060590309975530342363338135404",
                "81384505419341664089187724240160896991",
                "279086156151675448253248787254774324798",
                "229719608985720382728834512096249842775",
                "307488796212254766280894295833538516605",
                "102801281721691388712997364811092385682"
            ]
        },
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "target": {
            "file": "src/njs_iterator.c"
        }
    },
    {
        "id": "CVE-2022-31307-9585d335",
        "deprecated": false,
        "signature_type": "Line",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "270962405635539349045306700829155569547",
                "46702355503848243507095770144150209238",
                "322332007203446702768211235095523626994"
            ]
        },
        "source": "https://github.com/nginx/njs/commit/eafe4c7a326b163612f10861392622b5da5b1792",
        "target": {
            "file": "src/test/njs_unit_test.c"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31307.json"