CVE-2025-22865
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedUsing ParsePKCS1PrivateKey to parse a RSA key that is missing the CRT values would panic when verifying that the key is well formed.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceThis is a vulnerability in Go's crypto/rsa package where the ParsePKCS1PrivateKey function panics instead of returning an error when parsing RSA private keys in PKCS#1 format that are missing Chinese Remainder Theorem (CRT) values. An attacker can cause denial of service by supplying malformed RSA private keys to be parsed.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed Go versionRun 'go version' to identify the Go runtime version in useAffected if The version is earlier than Go 1.24 (e.g., 1.23.x, 1.22.x, etc.)
-
Identify use of ParsePKCS1PrivateKeySearch codebases for calls to crypto/rsa.ParsePKCS1PrivateKey using 'grep -r "ParsePKCS1PrivateKey"' or IDE find referencesAffected if The application code directly calls ParsePKCS1PrivateKey to parse RSA private keys
-
Verify key source is untrustedInspect the code path that supplies input to ParsePKCS1PrivateKey - check if keys originate from user input, network requests, files from external sources, or any untrusted originAffected if Keys parsed by ParsePKCS1PrivateKey come from untrusted or external sources rather than only from trusted internal configurations
-
Test with malformed PKCS#1 key missing CRTCreate a test RSA private key in PKCS#1 format with CRT parameters removed or set to nil, then pass it to ParsePKCS1PrivateKey in a controlled environment with panic recoveryAffected if The function panics rather than returning an error when parsing a PKCS#1 private key missing CRT values
A user is affected if they run Go versions before 1.24 and their application uses ParsePKCS1PrivateKey to parse RSA private keys from untrusted sources, as malformed keys will cause a panic instead of a safe error return.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate to a Go version that includes the fix (Go 1.24 or later), and implement panic recovery wrappers around RSA key parsing functions when processing keys from untrusted sources until the update is applied.
Go 1.22.11+ or Go 1.23.5+ (or latest stable 1.23.x)
- 1. Identify the current Go version in use by running: go version
- 2. If using Go 1.22.x, upgrade to Go 1.22.11 or later
- 3. If using Go 1.23.x, upgrade to Go 1.23.5 or later
- 4. If using an older version, upgrade to the latest stable Go release (currently 1.23.x)
- 5. Rebuild and redeploy any applications that use crypto/rsa ParsePKCS1PrivateKey function
- 6. Test that RSA private key parsing functions work correctly with your application's key formats
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-22865 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-22865 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data