{"id":"GHSA-mpwr-8vm7-h73f","revision":"0ed2264cbd8146aab46e2751a5bbb5c6","records":[{"revision":"0ed2264cbd8146aab46e2751a5bbb5c6","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-mpwr-8vm7-h73f","aliases":["GO-2026-5052"],"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)).","state":0,"publishedAt":"2026-08-17T21:56:01+00:00","modifiedAt":"2026-09-10T03:51:14.5199108+00:00","affected":[{"ecosystem":"Go","name":"software.sslmate.com/src/go-pkcs12","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.6.0"},{"kind":"fixed","version":"0.7.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/SSLMate/go-pkcs12/security/advisories/GHSA-mpwr-8vm7-h73f","https://github.com/SSLMate/go-pkcs12","https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181"],"sourceUrl":"https://github.com/advisories/GHSA-mpwr-8vm7-h73f","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mpwr-8vm7-h73f","identifiers":["GHSA-mpwr-8vm7-h73f","GO-2026-5052"]},"retained":false,"historicalAffected":[]}],"coverage":[]}