# GHSA-mpwr-8vm7-h73f: package pkcs12: Authentication bypass in Decode functions

> Attackers can bypass password authentication in PKCS#12 decoding by using short PBMAC1 keys, allowing malicious files to be accepted as valid.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 22 Jun 2026
- **Also known as:** GO-2026-5052

## What is GHSA-mpwr-8vm7-h73f?

GHSA-mpwr-8vm7-h73f is an authentication bypass vulnerability in software.sslmate.com/src/go-pkcs12, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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](https://openssl-library.org/news/vulnerabilities/#CVE-2026-34181)).

## Which versions are affected by GHSA-mpwr-8vm7-h73f?

3 open source packages ship an affected version, including software.sslmate.com/src/go-pkcs12.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `software.sslmate.com/src/go-pkcs12` | Go | From 0.6.0 | 0.7.2 |
| `software.sslmate.com/src/go-pkcs12` | Go | From 0.6.0 | 0.7.2 |
| `software.sslmate.com/src/go-pkcs12` | Go | From 0.6.0 | 0.7.2 |

## How do I fix GHSA-mpwr-8vm7-h73f?

Upgrade software.sslmate.com/src/go-pkcs12 to 0.7.2 or later.

## Is GHSA-mpwr-8vm7-h73f being exploited?

There is no known exploitation of GHSA-mpwr-8vm7-h73f in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-mpwr-8vm7-h73f and fix it if it is affected.

What it is: GHSA-mpwr-8vm7-h73f is an authentication bypass vulnerability in software.sslmate.com/src/go-pkcs12, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-mpwr-8vm7-h73f in the wild and no public exploit code.

Affected packages and fixed versions:
- software.sslmate.com/src/go-pkcs12 (Go): affected from 0.6.0; fixed in 0.7.2
- software.sslmate.com/src/go-pkcs12 (Go): affected from 0.6.0; fixed in 0.7.2
- software.sslmate.com/src/go-pkcs12 (Go): affected from 0.6.0; fixed in 0.7.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-mpwr-8vm7-h73f/ (Markdown: https://insights.sbomify.com/GHSA-mpwr-8vm7-h73f/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-mpwr-8vm7-h73f

---
From sbomify Insights: https://insights.sbomify.com/GHSA-mpwr-8vm7-h73f/
Summaries are generated and may contain mistakes; the official description above is the record.
