libcrypt-openssl-pkcs12-perl — security advisory
Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL internally) calls strlen() on the buffer. Any password byte at or after the first NULL is silently dropped. Binary / KDF-derived / HMAC-derived passwords lose entropy without any warnings.
- Products
- libcrypt-openssl-pkcs12-perl
- Affected versions
- 0.7-1, 0.7-1build1, 0.7-3ubuntu2, 0.8-1, 0.8-1build1, 1.2-1, 1.2-1build1, 1.9-2, 1.9-3, 1.9-3build1, 1.9-3build3, 1.9-3build4, 1.94-1, 1.95-1, 1.96-1, 1.97-1, 1.99-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-8721
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:24 UTC · Revision 1
Source evidence
Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL internally) calls strlen() on the buffer. Any password byte at or after the first NULL is silently dropped. Binary / KDF-derived / HMAC-derived passwords lose entropy without any warnings.
osv:UBUNTU-CVE-2026-8721
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
libcrypt-openssl-pkcs12-perl
Fixed versions: Not specified
Complete source record
{
"id": "8cecfca15193c4f8d95cfee9edd0d6b6c88ed3e5dae8ba6826a57833efc63394",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-8721",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-8721",
"summary": "Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL internally) calls strlen() on the buffer. Any password byte at or after the first NULL is silently dropped. Binary / KDF-derived / HMAC-derived passwords lose entropy without any warnings.",
"evidence": "osv:UBUNTU-CVE-2026-8721",
"products": [
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.7-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.7-1build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.7-3ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "0.8-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.8-1build1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.2-1build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.9-2",
"evidence": "/affected/3/versions"
},
{
"value": "1.9-3",
"evidence": "/affected/3/versions"
},
{
"value": "1.9-3build1",
"evidence": "/affected/3/versions"
},
{
"value": "1.9-3build3",
"evidence": "/affected/3/versions"
},
{
"value": "1.9-3build4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.94-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.94-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.95-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.96-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.97-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.99-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libcrypt-openssl-pkcs12-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.94-1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2026-8721",
"aliases": [
"UBUNTU-CVE-2026-8721"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.7-1",
"0.7-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "0.7-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.7-3ubuntu2",
"0.8-1",
"0.8-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "0.8-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.2-1",
"1.2-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.2-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.9-2",
"1.9-3",
"1.9-3build1",
"1.9-3build3",
"1.9-3build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.9-3build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.94-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.94-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.94-1",
"1.95-1",
"1.96-1",
"1.97-1",
"1.99-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.99-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.94-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-8721.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.94-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:14.214976772Z",
"provider": "osv",
"upstream": [
"CVE-2026-8721"
],
"references": [
"https://ubuntu.com/security/CVE-2026-8721",
"https://www.cve.org/CVERecord?id=CVE-2026-8721",
"https://lists.security.metacpan.org/cve-announce/msg/40149249/",
"https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/7b90e88a97f0ebe440032b8116249d1004d7ca6f",
"https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/468712ae04188342b263f057ad65f21a3545013b",
"https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/68904cd32691e223ad9eeff914812b8641eea14b",
"https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/d69393f3207586e3c6f2fe1a21b0b8972b93f8db",
"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md"
]
},
"related_cves": [
{
"value": "CVE-2026-8721",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361338,
"published_at": "2026-05-17T19:16:00+00:00"
}