Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹 Go
Not in CISA KEV

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

Also known asGO-2026-5052
Published
Aug 17, 2026
Updated
Sep 10, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 10, 2026 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐹software.sslmate.com/src/go-pkcs12

Real-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

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gosoftware.sslmate.com/src/go-pkcs12≥ 0.6.0&&< 0.7.20.7.2go get software.sslmate.com/src/go-pkcs12@v0.7.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

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

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

`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](https://openssl-library.org/news/vulnerabilit
O3 Security · Impact-Aware SCA

Is GHSA-mpwr-8vm7-h73f in your dependencies?

Find it across Go, including transitive dependencies.

GHSA-mpwr-8vm7-h73f: Fixed in 0.7.2 | O3 Security