Cloudanix VulnDB

CVE-2024-33260

Medium · 5.1

CVSS

5.1

EPSS

0.2%

Published

Apr 26, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Identify an application or device using the vulnerable JerryScript engine
  2. Craft a JavaScript payload with a malformed class expression targeting parser_parse_class
  3. Deliver the payload locally via file or input mechanism accepted by the application
  4. 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