CVE-2024-33259
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Apr 26, 2024
CISA due date
—
Cloudanix analysis
A bug in a JavaScript processing engine can cause programs that use it to crash when they encounter certain unusual code.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Medium
- Patch risk
- Low
What it actually does
Triggers a segmentation violation in scanner_seek at jerry-core/parser/js/js-scanner-util.c during JavaScript parsing, resulting in process crash due to invalid memory access.
Why it matters to the business
Applications relying on JerryScript may experience unexpected crashes when processing untrusted or malformed JavaScript, leading to service disruption without data loss or remote code execution.
How an attack unfolds
An attacker crafts JavaScript input that reaches an invalid state in the scanner, causing the segmentation violation when the parser attempts to seek within the token stream.
How to fix it
Upgrade JerryScript to a patched version that resolves the scanner_seek memory access issue in js-scanner-util.c.
How to confirm the fix worked
Reproduce the crash with known triggering JavaScript inputs against the scanner component and confirm absence of segmentation faults after applying updates.
Typical attack path
- Identify an application using the vulnerable JerryScript commit
- Supply crafted JavaScript that exercises the scanner_seek path
- Trigger the segmentation violation leading to denial of service
How to detect it
Review application logs and crash dumps for segmentation faults originating from jerry-core/parser/js/js-scanner-util.c or the scanner_seek function when parsing JavaScript.
What your security team should do
- Assess all deployments using JerryScript for exposure to the parser component
- Apply available upstream fixes to the scanner module
- Consider sandboxing or input sanitization for JavaScript parsing until patched
The record
Jerryscript commit cefd391 was discovered to contain a segmentation violation via the component scanner_seek at jerry-core/parser/js/js-scanner-util.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | iotjs | 0 | No fix |
| Ubuntu:22.04:LTS | iotjs | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | iotjs | 0 | No fix |
Related vulnerabilities
- CVE-2024-33255 Jerryscript commit cefd391 was discovered to contain an Assertion Failure via… Also affects iotjs
- CVE-2024-33260 Jerryscript commit cefd391 was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2024-33258 Jerryscript commit ff9ff8f was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2023-36109 Buffer Overflow vulnerability in JerryScript version 3.0, allows remote attackers to… Also affects iotjs
- CVE-2023-38961 Buffer Overflwo vulnerability in JerryScript Project jerryscript v.3.0.0 allows a remote… Also affects iotjs
- CVE-2023-36201 An issue in JerryscriptProject jerryscript v.3.0.0 allows an attacker to obtain sensitive… Also affects iotjs
- CVE-2023-34867 Jerryscript 3.0 (commit 05dbbd1) was discovered to contain an Assertion Failure via the… Also affects iotjs
- CVE-2023-34868 Jerryscript 3.0 (commit 05dbbd1) was discovered to contain an Assertion Failure via the… Also affects iotjs