{"id":"GHSA-mpwr-8vm7-h73f","aliases":["GHSA-mpwr-8vm7-h73f","GO-2026-5052"],"related":["CGA-x3hw-m2cv-vww4"],"kind":"vulnerability","state":"published","title":"package pkcs12: Authentication bypass in Decode functions","summary":"`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.\n\nThanks 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)).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"`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.\n\nThanks 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)).","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.","format":"markdown","source":"go"}],"published":"2026-06-22T21:24:28.000Z","modified":"2026-09-10T03:51:14.519Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"0.7.2"}],"ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","purl":"pkg:golang/software.sslmate.com/src/go-pkcs12","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"0.7.2"}],"ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","purl":"pkg:golang/software.sslmate.com/src/go-pkcs12","source":"go"}],"references":[{"url":"https://github.com/SSLMate/go-pkcs12/security/advisories/GHSA-mpwr-8vm7-h73f","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/SSLMate/go-pkcs12","tags":["package"],"sources":["ghsa"]},{"url":"https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/SSLMate/go-pkcs12/commit/03c441f6b0267f695ca02464133c0b373bf4dd55","tags":["fix"],"sources":["go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mpwr-8vm7-h73f","url":"https://github.com/advisories/GHSA-mpwr-8vm7-h73f","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:14.519Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5052","url":"https://pkg.go.dev/vuln/GO-2026-5052","licence":"CC-BY-4.0","modified":"2026-06-26T13:44:19.242Z"}],"updatedAt":"2026-11-25T22:56:24.636Z"}