CVE-2024-33260
Medium · 5.1CVSS
5.1
EPSS
0.2%
Published
Apr 26, 2024
CISA due date
—
Cloudanix analysis
A bug in a JavaScript engine used by some devices and programs can cause crashes or unexpected behavior when handling certain types of code.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Library
- Class
- Memory Corruption
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
The flaw triggers a segmentation violation during parsing of class expressions, resulting in memory corruption within the JavaScript engine's parser component.
Why it matters to the business
Applications relying on the affected JavaScript engine may crash or experience unpredictable behavior when processing untrusted scripts, disrupting operations in embedded or IoT environments.
How an attack unfolds
An attacker supplies a specially crafted JavaScript file containing a class definition that triggers the parser bug, causing the engine to fault during script loading or execution on the local system.
How to fix it
Update the JerryScript engine to a version containing the fix for the parser class handling logic; recompile and redeploy applications using the patched engine.
How to confirm the fix worked
Test parsing of class expressions with known triggering inputs in a controlled environment; monitor for absence of segmentation faults and confirm updated engine version in build artifacts.
Typical attack path
- Identify an application or device using the vulnerable JerryScript engine
- Craft a JavaScript payload with a malformed class expression targeting parser_parse_class
- Deliver the payload locally via file or input mechanism accepted by the application
- Trigger script parsing to induce the segmentation violation and achieve memory corruption effects
How to detect it
Review application or system logs for segmentation fault entries during JavaScript parsing; inspect crash dumps or core files referencing the parser expression module for signs of prior triggering.
What your security team should do
- Prioritize patching the JavaScript engine in all affected embedded and IoT deployments
- Implement input validation or sandboxing for untrusted JavaScript sources until fixed
- Monitor upstream JerryScript commits for parser-related stability improvements
The record
Jerryscript commit cefd391 was discovered to contain a segmentation violation via the component parser_parse_class at jerry-core/parser/js/js-parser-expr.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-33258 Jerryscript commit ff9ff8f was discovered to contain a segmentation violation via the… Also affects iotjs
- CVE-2024-33259 Jerryscript commit cefd391 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