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-14813

CVE-2025-14813: BC-JAVA Cryptographic Algorithm Vulnerability

CVE-2025-14813 is a broken cryptographic algorithm flaw in BC-JAVA bcprov affecting GOSTCTR implementation. The vulnerability prevents correct processing beyond 255 blocks. Learn about technical details and fixes.

Published: April 17, 2026

CVE-2025-14813 Overview

CVE-2025-14813 is a critical cryptographic vulnerability affecting Legion of the Bouncy Castle Inc's BC-JAVA library (bcprov) across all core modules. The vulnerability is classified as "Use of a Broken or Risky Cryptographic Algorithm" (CWE-327) and resides in the G3413CTRBlockCipher program files where the GOST CTR implementation fails to correctly process more than 255 blocks of data.

This flaw enables attackers to potentially compromise the confidentiality and integrity of encrypted data when the GOST cipher in CTR mode is used for encrypting data larger than 255 blocks (approximately 4KB for 128-bit block ciphers), leading to cryptographic failures that could expose sensitive information.

Critical Impact

The GOST CTR cipher implementation incorrectly handles block processing beyond 255 blocks, potentially leading to data exposure and integrity violations for encrypted payloads exceeding the threshold.

Affected Products

  • BC-JAVA bcprov versions 1.59 through 1.83
  • All core modules using the G3413CTRBlockCipher implementation
  • Applications implementing GOST CTR encryption via Bouncy Castle

Discovery Timeline

  • April 15, 2026 - CVE-2025-14813 published to NVD
  • April 15, 2026 - Last updated in NVD database

Technical Details for CVE-2025-14813

Vulnerability Analysis

The vulnerability stems from a fundamental implementation error in the GOST CTR (Counter) mode block cipher within the Bouncy Castle cryptographic library. The GOST cipher family is a set of Russian cryptographic standards, and CTR mode is a block cipher mode of operation that converts a block cipher into a stream cipher. The G3413CTRBlockCipher class is responsible for implementing GOST R 34.13-2015 CTR mode encryption.

The critical flaw lies in how the implementation handles the internal block counter. When processing data that exceeds 255 blocks, the counter mechanism fails to properly increment, likely due to an 8-bit counter overflow issue. This results in the cryptographic keystream repeating after the 255th block, which fundamentally breaks the security guarantees of CTR mode encryption.

When the same keystream is reused for different plaintext blocks, an attacker who obtains the ciphertext can XOR together the repeated ciphertext blocks to derive information about the plaintext—a classic cryptographic failure known as keystream reuse.

Root Cause

The root cause is an incorrect implementation of the block counter within G3413CTRBlockCipher. The counter variable appears to be implemented as an 8-bit value (or equivalent), which wraps around to zero after reaching 255. In CTR mode, each block must be encrypted with a unique counter value; when the counter repeats, the same keystream is generated for different plaintext blocks.

This violates the fundamental security requirement of CTR mode: that each counter value must be used exactly once with a given key. The issue likely exists in the counter increment logic where the carry propagation fails to extend beyond the least significant byte.

Attack Vector

The attack requires local access to the affected system where the vulnerable Bouncy Castle library processes cryptographic operations. An attacker can exploit this vulnerability by:

  1. Observing or capturing ciphertext produced by applications using GOST CTR mode with the vulnerable library
  2. Waiting for or inducing encryption of data larger than 255 blocks (approximately 4KB)
  3. Exploiting the keystream repetition to recover plaintext information through XOR analysis of repeated ciphertext blocks

The vulnerability is particularly dangerous for applications that encrypt large files, stream data, or handle bulk cryptographic operations using the affected GOST CTR implementation. Since the attack can compromise both confidentiality and integrity of encrypted data, it represents a significant risk for systems relying on this cipher mode for data protection.

Detection Methods for CVE-2025-14813

Indicators of Compromise

  • Applications using BC-JAVA versions 1.59 through 1.83 with GOST CTR encryption
  • Cryptographic operations involving G3413CTRBlockCipher class
  • Encrypted data outputs larger than 255 cipher blocks showing unexpected patterns
  • Evidence of keystream reuse in encrypted communications or stored data

Detection Strategies

  • Scan dependencies for BC-JAVA bcprov library versions between 1.59 and 1.83
  • Monitor for usage of G3413CTRBlockCipher in application code
  • Implement cryptographic testing that specifically validates large-block encryption behavior
  • Use software composition analysis (SCA) tools to identify vulnerable library versions

Monitoring Recommendations

  • Establish continuous dependency monitoring for Bouncy Castle libraries
  • Review cryptographic implementations using GOST cipher modes for data size handling
  • Audit applications processing encrypted data larger than 4KB using GOST CTR
  • Implement automated alerts for known vulnerable library versions in CI/CD pipelines

How to Mitigate CVE-2025-14813

Immediate Actions Required

  • Upgrade BC-JAVA bcprov to version 1.84 or later immediately
  • Inventory all applications and services using Bouncy Castle cryptographic libraries
  • Prioritize patching for systems handling sensitive data with GOST CTR encryption
  • Consider temporary workarounds for systems that cannot be immediately patched

Patch Information

Legion of the Bouncy Castle has released version 1.84 to address this vulnerability. The fix corrects the block counter implementation in G3413CTRBlockCipher to properly handle encryption of data exceeding 255 blocks.

Security patches are available through the following commits:

  • Security fix commit 701686cb
  • Security fix commit b4257434

For additional details, consult the official CVE wiki entry.

Workarounds

  • Avoid using GOST CTR mode for data larger than 255 blocks until patching is complete
  • Consider switching to alternative cipher modes (e.g., GCM) that are not affected
  • Implement application-level chunking to ensure no single encryption operation exceeds 255 blocks
  • Deploy compensating controls to detect and prevent exploitation attempts
bash
# Update Maven dependency to patched version
# In pom.xml, update bcprov-jdk18on dependency:
# <version>1.84</version>
# Then run:
mvn dependency:resolve -U
mvn clean install

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechBouncy Castle

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:M/U:Red
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-327
  • Technical References
  • GitHub Commit Change

  • GitHub Commit Change

  • GitHub CVE Wiki Entry
  • Related CVEs
  • CVE-2026-8149: Bouncy Castle BC-FIPS Vulnerability

  • CVE-2026-0636: Bouncy Castle BC-JAVA LDAP Injection Flaw

  • CVE-2026-5588: BC-JAVA Cryptographic Algorithm Vulnerability

  • CVE-2026-5598: BC-JAVA Information Disclosure Flaw
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