GHSA-mpwr-8vm7-h73f — go-pkcs12
GHSA-mpwr-8vm7-h73f is a security vulnerability in software.sslmate.com/src/go-pkcs12. A fix is available for software.sslmate.com/src/go-pkcs12 — see the affected versions and patch details below.
package pkcs12: Authentication bypass in Decode functions
Real-World Exposure
software.sslmate.com/src/go-pkcs12Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | software.sslmate.com/src/go-pkcs12 | ≥ 0.6.0&&< 0.7.2 | 0.7.2go get software.sslmate.com/src/go-pkcs12@v0.7.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for software.sslmate.com/src/go-pkcs12, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update software.sslmate.com/src/go-pkcs12 to 0.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-mpwr-8vm7-h73f is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-mpwr-8vm7-h73f in your dependencies?
Find it across Go, including transitive dependencies.