{"id":"CVE-2026-58102","aliases":["ALPINE-CVE-2026-58102","DEBIAN-CVE-2026-58102","EUVD-2026-43574","GHSA-crh7-2j46-hqrj","UBUNTU-CVE-2026-58102"],"status":"published","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","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.","severity":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.00341,"percentile":0.2786,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2026-07-13T22:22:48Z","modified":"2026-11-03T06:32:56Z","fixes":[{"ecosystem":"Alpine:v3.24","package":"perl-crypt-openssl-x509","fixed_in":["2.1.3-r0"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libcrypt-openssl-x509-perl","fixed_in":["2.1.3-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.24","package":"perl-crypt-openssl-x509","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.3-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.14-2","1.9.15-1","2.0.0+pristine-1","2.0.1-1","2.1.1-1","2.1.2-1","2.1.3-1","2.1.5-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-1","2.1.1-1","2.1.2-1","2.1.3-1","2.1.5-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.3-1"}]}],"versions":["2.0.1-1","2.1.1-1","2.1.2-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.6-1","1.8.6-1build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.7-3build1","1.8.8-1","1.8.8-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.12-1","1.8.12-1build1","1.8.13-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.02-1","1.9.10-1","1.9.10-1build1","1.9.12-1","1.9.12-1build1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.14-2","1.9.15-1","1.9.15-1build1","1.9.15-1build3","1.9.15-1build4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-1build1","2.1.1-1","2.1.3-1build2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcrypt-openssl-x509-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-1build1"]}],"products":[{"vendor":"jonasbn","product":"crypt::openssl::x509"},{"vendor":"jonasbn","product":"crypt\\"}],"references":[{"url":"https://github.com/dsully/perl-crypt-openssl-x509/commit/757289bfce095455c104d4adfe9312e7b339620f.patch","tags":["patch","Patch","fix"]},{"url":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.md","tags":["release-notes","Release Notes","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58102","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-crh7-2j46-hqrj"},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-58102","tags":["advisory"]},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58102.json","tags":["advisory"]},{"url":"https://github.com/dsully/perl-crypt-openssl-x509","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-58102","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-58102","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-58102","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/41792355/","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-58102","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","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.","status":"published","published":"2026-07-13T22:22:48.618Z","modified":"2026-07-14T13:03:15.979Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T13:47:39.876248Z"}],"euvd":[{"id":"EUVD-2026-43574","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.","status":"published","published":"2026-07-13T22:22:48Z","modified":"2026-07-14T13:03:15Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T18:20:00.206712Z"}],"ghsa":[{"id":"GHSA-crh7-2j46-hqrj","title":"Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long...","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.","status":"published","published":"2026-07-14T00:31:05Z","modified":"2026-07-14T15:33:15Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:09:27.635559Z"}],"nvd":[{"id":"CVE-2026-58102","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.","status":"published","published":"2026-07-13T23:16:47.127Z","modified":"2026-10-24T22:10:00.21Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:12:29.114188Z"}],"osv":[{"id":"ALPINE-CVE-2026-58102","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.","status":"published","published":"2026-07-13T23:16:47.127Z","modified":"2026-11-03T06:32:56.504156019Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-03T07:16:26.770911Z"},{"id":"CVE-2026-58102","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","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.","status":"published","published":"2026-07-13T22:22:48.618Z","modified":"2026-10-28T02:31:14.904836053Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:45:12.016252Z"},{"id":"DEBIAN-CVE-2026-58102","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.  When 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.","status":"published","published":"2026-07-13T23:16:47.127Z","modified":"2026-10-25T09:47:33.432382042Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:57.590991Z"},{"id":"UBUNTU-CVE-2026-58102","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. When 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.","status":"published","published":"2026-07-13T23:16:00Z","modified":"2026-10-17T12:59:12.959806684Z","cvss":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","level":"critical"}],"updated_at":"2026-11-02T16:56:41.911783Z"}]}}
