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

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-06-22T21:24:28.000Z
- Modified: 2026-09-10T03:51:14.519Z
- Also known as: GO-2026-5052
- Related: CGA-x3hw-m2cv-vww4
- Weaknesses: CWE-20

## 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](https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181)).

(As written by GitHub Advisory Database.)

## Affected

- software.sslmate.com/src/go-pkcs12 (Go): from 0.6.0 before 0.7.2

## References

- <https://github.com/SSLMate/go-pkcs12/security/advisories/GHSA-mpwr-8vm7-h73f> (advisory, web)
- <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)

## Sources

- GitHub Advisory Database: [GHSA-mpwr-8vm7-h73f](https://github.com/advisories/GHSA-mpwr-8vm7-h73f), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5052](https://pkg.go.dev/vuln/GO-2026-5052), CC-BY-4.0, modified 2026-06-26

---

Page: https://cve.day/GHSA-mpwr-8vm7-h73f · Whole record: https://cve.day/GHSA-mpwr-8vm7-h73f.json · Rebuilt by cve.day 2026-11-25T22:56:24.636Z
