{"schemaVersion":3,"id":"CVE-2022-25139","aliases":["ALPINE-CVE-2022-25139"],"status":"published","duplicateOf":null,"title":null,"description":"njs through 0.7.0, used in NGINX, was discovered to contain a heap use-after-free in njs_await_fulfilled.","dates":{"published":"2022-02-14T21:47:20.000Z","modified":"2024-08-03T04:29:01.781Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0163,"percentile":0.75855,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0163},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0163,"percentile":0.75855}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0163,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0163,"percentile":0.75855}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NGINX_NJS","name":"Njs","source":"github","url":"https://github.com/nginx/njs/issues/155","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"alpine","product":"nginx","name":"nginx","label":"nginx","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/nginx","purlType":"apk","versions":[{"text":"< 1.20.2-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.20.2-r2","eol":null,"hubHref":null},{"vendor":"f5","product":"njs","name":"njs","label":"njs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.7.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.2","eol":null,"hubHref":"/vendor/f5/njs"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nginx/njs/issues/451","label":"github.com/nginx/njs/issues/451","hostname":"github.com","tags":["X Refsource MISC","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/nginx/njs/commit/6a07c2156a07ef307b6dcf3c2ca8571a5f1af7a6","label":"github.com/nginx/njs/commit/6a07c2156a07ef307b6dcf3c2ca8571a5f1af7a6","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20220303-0007/","label":"security.netapp.com/advisory/ntap-20220303-0007/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-25139","label":"security.alpinelinux.org/vuln/CVE-2022-25139","hostname":"security.alpinelinux.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-02-14T21:47:20.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T04:29:01.781Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:15:20.540Z","stale":false,"partial":false}}