Cloudanix VulnDB

CVE-2021-44992

Medium · 5.5

CVSS

5.5

EPSS

0.8%

Published

Jan 25, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a JavaScript engine can make programs that use it crash when they receive certain bad data, interrupting whatever service those programs provide.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

An invalid assertion in the Jerryscript JavaScript engine's typed-array handling path causes an immediate process abort when certain malformed objects are processed.

Why it matters to the business

Applications that embed the affected JavaScript engine may experience unexpected crashes, resulting in loss of service availability until the process is restarted.

How an attack unfolds

An attacker supplies crafted JavaScript or data that reaches the typed-array object validation routine, triggering the failed assertion and terminating the interpreter process.

How to fix it

Upgrade the affected Jerryscript component to a build containing commit 15d5e8700d538935b5c411b2a1e25bcf7e16c47c or later; rebuild and redeploy any dependent applications.

How to confirm the fix worked

Confirm the running binary or library reports a version or commit hash after the listed fix; re-execute the original assertion test case to verify it no longer aborts.

Typical attack path

  1. Identify an application surface that accepts or processes untrusted JavaScript or typed-array data
  2. Craft input that violates the ecma_object_is_typedarray invariant
  3. Trigger the assertion failure to crash the hosting process
  4. Repeat to sustain denial-of-service conditions

How to detect it

Review application and system logs for abrupt process exits or assertion-failure messages referencing ecma-typedarray-object.c; correlate with recent JavaScript processing activity.

What your security team should do

  • Apply the referenced commit or newer build immediately due to public exploit availability
  • Inventory all products that embed Jerryscript and schedule upgrades
  • Add runtime monitoring for unexpected process terminations in JavaScript execution contexts

The record

There is an Assertion ''ecma_object_is_typedarray (obj_p)'' failed at /jerry-core/ecma/operations/ecma-typedarray-object.c in Jerryscript 3.0.0.

Affected packages

Ecosystem Package Introduced Fixed
Ubuntu:22.04:LTS iotjs 0 No fix
conan jerryscript 3.0.0 No fix

Related vulnerabilities