CVE-2023-30406
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Apr 24, 2023
CISA due date
—
Cloudanix analysis
A flaw in a JavaScript engine can cause programs that use it to crash when they receive certain inputs.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Triggers a segmentation violation in ecma_find_named_property at ecma-helpers.c, causing the JerryScript engine to crash.
Why it matters to the business
Services or applications embedding JerryScript experience unexpected downtime and loss of availability when processing untrusted scripts.
How an attack unfolds
An attacker supplies a specially crafted JavaScript payload that reaches ecma_find_named_property during property lookup, forcing the engine into an invalid memory access and terminating the process.
How to fix it
Upgrade to a newer commit that resolves the memory access issue once released by the project maintainers; until then, restrict processing of untrusted scripts.
How to confirm the fix worked
Replay the original crashing test case against the updated engine and confirm absence of segmentation faults or abnormal termination.
Typical attack path
- Deliver malicious JavaScript to a JerryScript-based application or runtime
- Trigger property lookup that invokes ecma_find_named_property
- Induce segmentation violation resulting in process termination
How to detect it
Review application and system logs for segmentation fault entries or abrupt JerryScript process exits when handling external scripts.
What your security team should do
- Track upstream JerryScript commits for a corrective patch
- Sandbox or isolate JerryScript execution environments
- Apply input validation and resource limits around script execution
The record
Jerryscript commit 1a2c047 was discovered to contain a segmentation violation via the component ecma_find_named_property at /base/ecma-helpers.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-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