{
  "id": "CVE-2026-58102",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-58102",
  "published_at": "2026-07-13T22:22:48.618Z",
  "title": "Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate extension OID in hv_exts",
  "vendor": "JONASBN",
  "product": "Crypt::OpenSSL::X509",
  "cvss": {
    "score": 9.1,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate extension OID in hv_exts.\n\nWhen building the extension hash (via extensions(), extensions_by_long_name(), extensions_by_oid(), or has_extension_oid()), the code passes OBJ_obj2txt()'s return value as the hash-key length; because that value is the OID's full text length rather than the bytes written to the fixed-size buffer (129 bytes), an OID whose text is longer than the 129-byte buffer causes a read past the allocation, exposing adjacent heap memory as the returned hash key. extensions_by_name() uses the static shortname path and is not affected.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:jonasbn:crypt\\:\\:openssl\\:\\:x509:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "JONASBN",
        "product": "Crypt::OpenSSL::X509",
        "ranges": [
          "\u003c 2.1.3"
        ],
        "fixed_in": [
          "2.1.3"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Crypt::OpenSSL::X509 2.1.3 or later."
    ],
    "upgrade": [
      "Upgrade Crypt::OpenSSL::X509 to 2.1.3 or later."
    ],
    "workarounds": [
      "Callers that must enumerate extensions of untrusted certificates can restrict enumeration to extensions_by_name(), which uses the static shortname path and does not trigger the over-read."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/dsully/perl-crypt-openssl-x509/commit/757289bfce095455c104d4adfe9312e7b339620f.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.md"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
