Home

Description

Crypt::OpenSSL::PKCS12 versions before 1.96 for Perl permits a heap OOB read in print_attribute UTF8STRING path. print_attribute() copies a UTF8STRING ASN.1 attribute value into a heap buffer sized exactly to its declared length via strncpy, leaving no NUL terminator. Downstream callers run strlen() on the result and pass the inflated length to newSVpvn(), copying attacker-influenced adjacent heap bytes into a Perl scalar.

PUBLISHED Reserved 2026-05-22 | Published 2026-06-20 | Updated 2026-06-20 | Assigner CPANSec

Problem types

CWE-125 Out-of-bounds Read

Product status

Default status
unaffected

Any version before 1.96
affected

References

github.com/dsully/perl-crypt-openssl-pkcs12/issues/55 issue-tracking

metacpan.org/.../Crypt-OpenSSL-PKCS12-1.96/source/Changes.md release-notes

github.com/...a7bd2f319fa8aab8177b3d767ea06dd85ceb3173.patch patch

cve.org (CVE-2026-9265)

nvd.nist.gov (CVE-2026-9265)

Download JSON