Cloudanix VulnDB

CVE-2023-30406

Medium · 5.5

CVSS

5.5

EPSS

0.3%

Published

Apr 24, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a JavaScript engine can cause programs that use it to crash when they receive certain inputs.

Exploit Available
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

  1. Deliver malicious JavaScript to a JerryScript-based application or runtime
  2. Trigger property lookup that invokes ecma_find_named_property
  3. 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