GitHub Advisoryadvisory · Go

GHSA-mpwr-8vm7-h73f package pkcs12: Authentication bypass in Decode functions

MEDIUM Published 2026-08-17 Modified 2026-08-17 Official page ↗
Ecosystem
Go
Packages
software.sslmate.com/src/go-pkcs12
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Weaknesses
CWE-20
Reviewed
2026-08-17

Affected packages

• Go software.sslmate.com/src/go-pkcs12: >= 0.6.0, < 0.7.2 → fixed in 0.7.2

Description

`Decode`, `DecodeChain`, `DecodeTrustStore`, and `ToPEM` can incorrectly accept PKCS#12 files which were encoded with the wrong password, due to a failure to reject excessively-short PBMAC1 keys. Users who decode PKCS#12 files from untrusted sources and rely on the password for authentication can be tricked into accepting malicious PKCS#12 files. Users who only decode PKCS#12 files from trusted sources are not affected. Thanks to Pavol Žáčik (Red Hat) and Alex Gaynor (Anthropic) for finding and reporting the same issue in OpenSSL (CVE-2026-34181).

Related

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References