GHSA-mpwr-8vm7-h73f
JSON

medium

package pkcs12: Authentication bypass in Decode functions

Severity
medium CVSS:4.0 by GitHub
Published
Last changed
Also known as
GO-2026-5052

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).

Affected

Product or packageVersionsReported by
software.sslmate.com/src/go-pkcs12 (Go)from 0.6.0 before 0.7.2GitHub Advisory Database, Go Vulnerability Database

Classification

What each source says

GitHub Advisory Database

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).

Go Vulnerability Database

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.

References

Related

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-mpwr-8vm7-h73f changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5052 changed 2026-06-26CC-BY-4.0