{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.2.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "3f7d3bbac8cd195d552945e79586ca5000f33280"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "71ae41bd1cb146a432a39f72010b48f45ad69463"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.2.5",
                "range": [
                  {
                    "fixed": "81e45fbd8eabbb95f7ed1f418faf481a227931b6"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "81e45fbd8eabbb95f7ed1f418faf481a227931b6"
            },
            {
              "fixed": "3f7d3bbac8cd195d552945e79586ca5000f33280"
            },
            {
              "fixed": "71ae41bd1cb146a432a39f72010b48f45ad69463"
            }
          ],
          "repo": "https://github.com/mouse07410/asn1c",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-rcj5-gcvg-x796"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-476"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62298.json"
  },
  "details": "mouse07410/asn1c is an ASN.1 compiler. Prior to 1.2.5, `OPEN TYPE` decoding can dereference an unallocated member pointer and crash the consuming program. `OPEN_TYPE_aper_get` in `OPEN_TYPE_aper.c`, `OPEN_TYPE_ber_get` in `OPEN_TYPE_ber.c`, `OPEN_TYPE_oer_get` in `OPEN_TYPE_oer.c`, and `OPEN_TYPE_uper_get` in `OPEN_TYPE_uper.c` share the pattern: a conditional null check on `*memb_ptr2` resets presence only when the member exists, but execution then unconditionally computes an inner value from that pointer and a member offset. If the `OPEN TYPE` member has not been allocated, the null-pointer arithmetic and subsequent read cause a segmentation fault. The advisory demonstrates UPER and APER crashes for `E2connectionUpdateAcknowledge`, notes that `E2AP` uses APER, and provides a BER reproducer; OER is also explicitly identified as affected. This issue is fixed in version 1.2.5.",
  "id": "CVE-2026-62298",
  "modified": "2026-11-01T02:30:26.600188171Z",
  "published": "2026-10-30T18:56:59.029Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/mouse07410/asn1c/releases/tag/v1.2.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62298.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mouse07410/asn1c/security/advisories/GHSA-rcj5-gcvg-x796"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-62298"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mouse07410/asn1c/commit/3f7d3bbac8cd195d552945e79586ca5000f33280"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mouse07410/asn1c/commit/71ae41bd1cb146a432a39f72010b48f45ad69463"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "asn1c: ASAN crash with decode of open types"
}