Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-41682

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-41682
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:57 UTC · Revision 1

Source evidence

CVE-2021-41682

core-osv · Original source

Published 20 Jun 2022, 14:15 UTC

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

osv:CVE-2021-41682
Complete source record
{
  "id": "c345db16716bcfa6609d9230addcf1f623a4380325bbc22a771a8e3c66fe54bb",
  "url": "https://osv.dev/vulnerability/CVE-2021-41682",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-41682",
    "summary": "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",
    "evidence": "osv:CVE-2021-41682",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-41682",
      "aliases": [
        "CVE-2021-41682"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jerryscript-project/jerryscript",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc"
                },
                {
                  "last_affected": "8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:jerryscript:jerryscript:2.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.0",
            "v2.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41682.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:58.733233189Z",
      "provider": "osv",
      "references": [
        "https://github.com/jerryscript-project/jerryscript/issues/4747"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-41682",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386613,
  "published_at": "2022-06-20T14:15:08.947+00:00"
}