CVE-2026-8721
Full vulnerability record from the local CVENow database.
Description
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.
Severity
CRITICAL
CVSS score
9.8
(v3.1)
Vulnerability status
Deferred
Source identifier
9b29abf9-4ab0-4765-b253-1875cd9b441e
Published
2026-05-17 19:16:25.310000
Last modified
2026-10-25 23:10:00.167000
View original CVE JSON
{
"id": "CVE-2026-8721",
"sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"published": "2026-05-17T19:16:25.310",
"lastModified": "2026-10-25T23:10:00.167",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs.\n\nPassword parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded.\n\nThe 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."
},
{
"lang": "es",
"value": "Las versiones de Crypt::OpenSSL::PKCS12 hasta la 1.94 para Perl truncan contraseñas con NULLs incrustados.\n\nLos parámetros de contraseña en PKCS12.xs se declaran como char *, lo que se enruta a través del typemap predeterminado de Perl a SvPV_nolen. La longitud de Perl se descarta.\n\nEl código C (o OpenSSL internamente) llama a strlen() en el búfer. Cualquier byte de contraseña en o después del primer NULL se descarta silenciosamente. Las contraseñas binarias / derivadas de KDF / derivadas de HMAC pierden entropía sin ninguna advertencia."
}
],
"affected": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"affectedData": [
{
"vendor": "JONASBN",
"product": "Crypt::OpenSSL::PKCS12",
"defaultStatus": "unaffected",
"collectionURL": "https://cpan.org/modules",
"packageName": "Crypt-OpenSSL-PKCS12",
"programFiles": [
"PKCS12.xs"
],
"programRoutines": [
{
"name": "Crypt::OpenSSL::PKCS12::mac_ok"
},
{
"name": "Crypt::OpenSSL::PKCS12::changepass"
},
{
"name": "Crypt::OpenSSL::PKCS12::create"
},
{
"name": "Crypt::OpenSSL::PKCS12::create_as_string"
},
{
"name": "Crypt::OpenSSL::PKCS12::certificate"
},
{
"name": "Crypt::OpenSSL::PKCS12::ca_certificate"
},
{
"name": "Crypt::OpenSSL::PKCS12::private_key"
},
{
"name": "Crypt::OpenSSL::PKCS12::info_as_hash"
},
{
"name": "Crypt::OpenSSL::PKCS12::info"
}
],
"repo": "https://github.com/dsully/perl-crypt-openssl-pkcs12",
"versions": [
{
"version": "0",
"lessThanOrEqual": "1.94",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-05-18T12:56:25.907387Z",
"id": "CVE-2026-8721",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-170"
}
]
}
],
"references": [
{
"url": "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
},
{
"url": "http://www.openwall.com/lists/oss-security/2026/05/17/6",
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
]
}