GO-2026-5052
MEDIUMpackage pkcs12: Authentication bypass in Decode functions
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).
- Published
- 22 Jun 2026
- Last modified
- 10 Sep 2026
- Weakness
- CWE-20
- Also known as
- GHSA-mpwr-8vm7-h73f
- Sources
- OSV GHSA-mpwr-8vm7-h73fJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | software.sslmate.com/src/go-pkcs12 | >= 0.6.0, < 0.7.2 | 0.7.2 |
References
- https://github.com/SSLMate/go-pkcs12/security/advisories/GHSA-mpwr-8vm7-h73f · WEB, ADVISORY
- https://github.com/SSLMate/go-pkcs12 · PACKAGE
- https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181 · WEB
- https://github.com/SSLMate/go-pkcs12/commit/03c441f6b0267f695ca02464133c0b373bf4dd55 · FIX
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Aug 2026)