{"id":"GHSA-mpwr-8vm7-h73f","aliases":["GO-2026-5052"],"status":"published","title":"package pkcs12: Authentication bypass in Decode functions","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.\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)).","severity":{"version":"4.0","score":6.3,"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","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2026-06-22T21:24:28Z","modified":"2026-09-10T03:51:14Z","fixes":[{"ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","fixed_in":["0.7.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0"},{"fixed":"0.7.2"}]}]},{"source":"osv","ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.0"},{"fixed":"0.7.2"}]}]},{"source":"osv","ecosystem":"Go","package":"software.sslmate.com/src/go-pkcs12","ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.0"},{"fixed":"0.7.2"}]}]}],"references":[{"url":"https://github.com/SSLMate/go-pkcs12/security/advisories/GHSA-mpwr-8vm7-h73f","tags":["web","advisory"]},{"url":"https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mpwr-8vm7-h73f"},{"url":"https://github.com/SSLMate/go-pkcs12","tags":["package"]},{"url":"https://github.com/SSLMate/go-pkcs12/commit/03c441f6b0267f695ca02464133c0b373bf4dd55","tags":["fix"]}],"sources":{"ghsa":[{"id":"GHSA-mpwr-8vm7-h73f","title":"package pkcs12: Authentication bypass in Decode functions","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.\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)).","status":"published","published":"2026-08-17T21:56:01Z","modified":"2026-08-17T21:56:03Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:41:01.23108Z"}],"osv":[{"id":"GHSA-mpwr-8vm7-h73f","title":"package pkcs12: Authentication bypass in Decode functions","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.\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)).","status":"published","published":"2026-08-17T21:56:01Z","modified":"2026-09-10T03:51:14.519910771Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"GO-2026-5052","title":"Vulnerability in software.sslmate.com/src/go-pkcs12","description":"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.","status":"published","published":"2026-06-22T21:24:28Z","modified":"2026-06-26T13:44:19.242514716Z","updated_at":"2026-11-02T15:47:02.280725Z"}]}}
