GO-2026-5932 — Vulnerability in golang.org/x/crypto/openpgp
The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
Does your project use an affected golang.org/x/crypto/openpgp version?
Paste your go.sum to check it for GO-2026-5932 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
The golang.org/x/crypto/openpgp package is unsafe by design, has numerous known security issues, is not maintained, and should not be used.
If you are required to interoperate with OpenPGP systems and need a maintained package, consider github.com/ProtonMail/go-crypto/openpgp which is a maintained fork that aims to be a drop-in replacement for this package.
Advisory Timeline
- First published July 7, 2026 (142 days ago).
- Last revised November 2, 2026 — 118 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get golang.org/x/crypto@v0.58.1-0.20261009181718-2f1f834330b2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Go (2).
| Package | Fixed In |
|---|---|
| golang.org/x/crypto/openpgp Go · Affected: All versions | Range-based data available |
| golang.org/x/crypto Go · Affected: All versions | 0.58.1-0.20261009181718-2f1f834330b2 |
References
Frequently Asked Questions
- What is GO-2026-5932?
- The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues. This vulnerability has been assigned a severity rating of Unknown.
- How do I check if my project is affected by GO-2026-5932?
- GO-2026-5932 affects golang.org/x/crypto/openpgp and golang.org/x/crypto. Use GeekWala's free vulnerability scanner to check your dependencies against GO-2026-5932 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Related CVEs
- CVE-2026-46595CRITICAL
golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement
- CVE-2026-39829HIGH
golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
- CVE-2020-29652
Panic on crafted authentication request message in golang.org/x/crypto/ssh
- CVE-2022-27191
Denial of service via crafted Signer in golang.org/x/crypto/ssh
- CVE-2021-43565
Panic on malformed packets in golang.org/x/crypto/ssh
- CVE-2023-48795
Man-in-the-middle attacker can compromise integrity of secure channel in golang.org/x/crypto
- CVE-2022-30636
Limited directory traversal vulnerability on Windows in golang.org/x/crypto
- CVE-2024-45337
Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto