CVE-2021-44988
High · 7.8CVSS
7.8
EPSS
1.1%
Published
Jan 25, 2022
CISA due date
—
Cloudanix analysis
A bug in the JavaScript engine used by certain applications can let attackers take over a system or crash it when a user processes a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack overflow in ecma_find_named_property allows memory corruption on the call stack, enabling control-flow hijacking or process crash.
Why it matters to the business
Compromised JavaScript execution environments may expose sensitive data or allow remote code execution; moderate urgency due to low EPSS, stable trend, and no KEV listing despite exploit code being public.
How an attack unfolds
An attacker supplies crafted JavaScript that reaches ecma_find_named_property, overflows the stack frame, and overwrites return addresses or saved registers to gain arbitrary execution.
How to fix it
Upgrade neorazorx/facturascripts to commit 73a6595ca85984d65f656c6356fabb23d1936c54 or later; rebuild and redeploy any embedded JerryScript components.
How to confirm the fix worked
Confirm the ecma-helpers.c source contains the patched ecma_find_named_property implementation and that runtime tests exercising named-property lookups no longer trigger overflows.
Typical attack path
- Deliver malicious JavaScript to the target application
- Trigger property lookup that calls the vulnerable helper
- Overflow the stack to corrupt control data
- Execute attacker-supplied code or cause denial of service
How to detect it
Review application and system logs for unexpected crashes or stack-smashing signals during JavaScript execution; correlate with file or network sources that deliver untrusted scripts.
What your security team should do
- Apply the referenced commit immediately in all builds
- Scan source repositories for older JerryScript copies
- Add memory-safety tooling (ASAN, fuzzing) to the build pipeline
- Monitor upstream JerryScript releases for related fixes
The record
Jerryscript v3.0.0 and below was discovered to contain a stack overflow via ecma_find_named_property in ecma-helpers.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:22.04:LTS | iotjs | 0 | No fix |
| conan | jerryscript | 3.0.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