VulnerabilityAwaiting classification

CVE-2025-22865

HIGH · 7.5 CVSS v3.1 Published 2025-01-28
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

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 · unedited
Using 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 confidence

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

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

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 checks

Work through these to decide whether this CVE applies to you.

  1. Check installed Go version
    Run 'go version' to identify the Go runtime version in use
    Affected if The version is earlier than Go 1.24 (e.g., 1.23.x, 1.22.x, etc.)
  2. Identify use of ParsePKCS1PrivateKey
    Search codebases for calls to crypto/rsa.ParsePKCS1PrivateKey using 'grep -r "ParsePKCS1PrivateKey"' or IDE find references
    Affected if The application code directly calls ParsePKCS1PrivateKey to parse RSA private keys
  3. Verify key source is untrusted
    Inspect the code path that supplies input to ParsePKCS1PrivateKey - check if keys originate from user input, network requests, files from external sources, or any untrusted origin
    Affected if Keys parsed by ParsePKCS1PrivateKey come from untrusted or external sources rather than only from trusted internal configurations
  4. Test with malformed PKCS#1 key missing CRT
    Create 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 recovery
    Affected 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

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

Recommended fix Moderate confidence

Go 1.22.11+ or Go 1.23.5+ (or latest stable 1.23.x)

  1. 1. Identify the current Go version in use by running: go version
  2. 2. If using Go 1.22.x, upgrade to Go 1.22.11 or later
  3. 3. If using Go 1.23.x, upgrade to Go 1.23.5 or later
  4. 4. If using an older version, upgrade to the latest stable Go release (currently 1.23.x)
  5. 5. Rebuild and redeploy any applications that use crypto/rsa ParsePKCS1PrivateKey function
  6. 6. Test that RSA private key parsing functions work correctly with your application's key formats
Caveat Go minor version upgrades typically have minimal breaking changes, but review the Go release notes for any behavioral changes between your current version and the target version

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-22865 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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