The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-22865

CVE-2025-22865: RSA Key Parsing Buffer Overflow Vulnerability

CVE-2025-22865 is a buffer overflow vulnerability in ParsePKCS1PrivateKey that causes a panic when parsing RSA keys missing CRT values. This article covers the technical details, affected systems, and mitigation strategies.

Published: April 29, 2026

CVE-2025-22865 Overview

CVE-2025-22865 is a vulnerability in the Go programming language's crypto/x509 package where using the ParsePKCS1PrivateKey function to parse an RSA private key that is missing Chinese Remainder Theorem (CRT) values causes a panic during key validation. This can lead to a denial of service condition in applications that process untrusted RSA key material.

Critical Impact

Applications using Go's ParsePKCS1PrivateKey function to process untrusted PKCS#1 RSA private keys are vulnerable to denial of service attacks when a malformed key without CRT values is submitted.

Affected Products

  • Go standard library crypto/x509 package
  • Applications using ParsePKCS1PrivateKey to parse untrusted RSA keys
  • Go versions prior to the security patch

Discovery Timeline

  • 2025-01-28 - CVE CVE-2025-22865 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-22865

Vulnerability Analysis

This vulnerability occurs in Go's ParsePKCS1PrivateKey function within the crypto/x509 package. The function is responsible for parsing PKCS#1-formatted RSA private keys and validating their structure. When processing an RSA private key that lacks the optional Chinese Remainder Theorem (CRT) optimization values (Dp, Dq, and Qinv), the validation logic encounters a nil pointer or invalid state, causing the application to panic rather than returning a graceful error.

The CRT values are technically optional in the PKCS#1 standard, as they are precomputed values used to speed up RSA private key operations. However, Go's key validation code does not properly handle the case where these values are absent, leading to an unrecoverable panic condition.

Root Cause

The root cause is improper input validation in the key verification logic of ParsePKCS1PrivateKey. When the function attempts to verify that the parsed RSA key is "well formed," it assumes the presence of CRT values without first checking if they exist. This results in operations being performed on nil or zero-length data, triggering a Go runtime panic.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious PKCS#1 RSA private key that omits the CRT values (Dp, Dq, Qinv) and submitting it to an application that parses untrusted key material. The attack is network-accessible and requires no authentication or user interaction.

Attack scenarios include:

  • Submitting malformed keys to certificate management APIs
  • Uploading crafted key files to services that process user-provided cryptographic material
  • Injecting malicious keys through configuration management systems

The vulnerability causes a panic (unrecoverable crash) in the affected Go application, resulting in denial of service. Each crash requires the application or service to be restarted, and repeated exploitation can sustain the denial of service condition indefinitely.

Detection Methods for CVE-2025-22865

Indicators of Compromise

  • Unexpected application crashes or panics in Go services processing RSA keys
  • Stack traces referencing crypto/x509.ParsePKCS1PrivateKey or related validation functions
  • Repeated service restarts correlated with key processing operations

Detection Strategies

  • Monitor application logs for Go panic stack traces involving the crypto/x509 package
  • Implement alerting on sudden increases in service crashes or restarts
  • Deploy input validation to detect malformed PKCS#1 keys before passing to ParsePKCS1PrivateKey
  • Use static analysis tools to identify code paths that process untrusted key material

Monitoring Recommendations

  • Set up real-time monitoring for Go runtime panics in production applications
  • Configure health check endpoints to quickly detect service unavailability
  • Implement circuit breakers around cryptographic key processing functions
  • Track metrics on key parsing operations to identify anomalous patterns

How to Mitigate CVE-2025-22865

Immediate Actions Required

  • Update Go to the latest patched version that addresses this vulnerability
  • Review application code to identify all uses of ParsePKCS1PrivateKey with untrusted input
  • Implement input validation to reject PKCS#1 keys that lack required CRT values before parsing
  • Consider wrapping key parsing operations with panic recovery mechanisms as a temporary measure

Patch Information

The vulnerability has been addressed by the Go security team. Detailed information about the fix is available in the Go.dev Change Log Entry. The fix ensures proper validation of RSA key components before performing operations that assume their presence.

Additional resources:

  • Go.dev Issue Tracker
  • Golang Development Discussion
  • Go.dev Vulnerability Report

Workarounds

  • Validate PKCS#1 RSA key structure before calling ParsePKCS1PrivateKey to ensure CRT values are present
  • Implement panic recovery using Go's recover() function around key parsing code to prevent application crashes
  • Restrict key parsing endpoints to trusted sources only until patches can be applied
  • Consider using alternative key parsing methods that handle malformed keys more gracefully
bash
# Check Go version and upgrade to patched version
go version
# Update Go to the latest patched version
# Follow your platform-specific update instructions
# Example for systems using go modules:
go get -u all
go mod tidy

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechN/A

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Go.dev Change Log Entry

  • Go.dev Issue Tracker

  • Golang Development Discussion

  • Go.dev Vulnerability Report
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English