LiveActive security incident?Get immediate response
CVE Record

CVE-2021-41682: There is a heap-use-after-free at ecma-helpers-string.c:1940 in ecma_compare_ecma_non_direct_strings in Jer...

There is a heap-use-after-free at ecma-helpers-string.c:1940 in ecma_compare_ecma_non_direct_strings in JerryScript 2.4.0

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

CVE-2021-41682 is a memory-safety flaw in JerryScript 2.4.0. The public record describes a heap use-after-free in string comparison code. Business risk depends on whether JerryScript is embedded in a product and whether attackers can supply JavaScript input. Public severity, affected CPEs, and fixed-version details are not provided in the source bundle.

Executive priority

Prioritize discovery first. This is a potentially serious memory-safety issue, but urgency cannot be ranked confidently without exposure, reachability, and vendor fix information.

Technical view

The issue is reported at ecma-helpers-string.c:1940 in ecma_compare_ecma_non_direct_strings in JerryScript 2.4.0. The bug class is heap use-after-free, but the source bundle provides no CVSS vector, CWE mapping, affected platform list, patch version, or detailed impact statement.

Likely exposure

Exposure is most likely in products, firmware, or services embedding JerryScript 2.4.0, especially where untrusted JavaScript can be parsed or executed. The bundle does not identify downstream vendors, packages, or CPEs.

Exploitation context

The source bundle does not show CISA KEV listing or other evidence of active exploitation. The GitHub issue reference indicates public disclosure, but exploitability and practical impact are not established from the provided data.

Researcher notes

Evidence is sparse. The CVE identifies a heap use-after-free in JerryScript 2.4.0, but lacks CVSS, CWE, CPEs, fixed release data, and exploitation evidence. Focus analysis on reachability from untrusted JavaScript and maintainer guidance in the referenced GitHub issue.

Mitigation direction

  • Inventory applications and devices that embed JerryScript.
  • Confirm whether any embedded runtime is version 2.4.0.
  • Check JerryScript issue 4747 and vendor guidance for fixed versions.
  • Restrict untrusted JavaScript input where JerryScript 2.4.0 is reachable.
  • Apply a confirmed upstream or vendor fix when identified.

Validation and detection

  • Review SBOMs and build manifests for JerryScript.
  • Inspect runtime binaries or package metadata for version 2.4.0.
  • Confirm whether ecma_compare_ecma_non_direct_strings is present and reachable.
  • Check crash and sanitizer reports for related use-after-free findings.
  • Document any compensating controls limiting untrusted script execution.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-41682 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.