Runtime crash via inconsistent Unicode trim length
Published Sep 15, 2022 · Updated Aug 3, 2024
Out-of-bounds read in NGINX njs 0.7.7 allows local users to crash the JavaScript runtime through crafted JavaScript. String.prototype.trimEnd() leaves an all-whitespace Unicode string with a nonzero byte size but zero character length, so lastIndexOf() advances njs_utf8_next beyond the valid buffer. Execution requires modification or invocation of trusted JavaScript code; the demonstrated consequence is a process abort rather than data disclosure or code execution.
Summary
What happened
Out-of-bounds read in NGINX njs 0.7.7 allows local users to crash the JavaScript runtime through crafted JavaScript. String.prototype.trimEnd() leaves an all-whitespace Unicode string with a nonzero byte size but zero character length, so lastIndexOf() advances njs_utf8_next beyond the valid buffer. Execution requires modification or invocation of trusted JavaScript code; the demonstrated consequence is a process abort rather than data disclosure or code execution.
The record
- CVE
- CVE-2022-38890
- Published
- Sep 15, 2022
- Updated
- Aug 3, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-125
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 15, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- njs Unicode trim crash proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo