Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-32935

CVE-2026-32935: Phpseclib Padding Oracle Vulnerability

CVE-2026-32935 is a padding oracle timing attack vulnerability in Phpseclib affecting AES CBC mode implementations. This security flaw allows attackers to decrypt encrypted data. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-32935 Overview

CVE-2026-32935 is a padding oracle timing attack vulnerability affecting phpseclib, a widely-used PHP secure communications library. Projects using vulnerable versions are susceptible to cryptographic attacks when utilizing AES encryption in CBC (Cipher Block Chaining) mode. This timing-based side-channel attack allows adversaries to decrypt encrypted data by analyzing response time variations during padding validation, potentially exposing sensitive communications.

Critical Impact

Attackers can exploit timing differences in padding validation to decrypt AES-CBC encrypted data without knowing the encryption key, potentially compromising confidential communications and sensitive data protected by phpseclib.

Affected Products

  • phpseclib versions 1.0.26 and below
  • phpseclib versions 2.0.0 through 2.0.51
  • phpseclib versions 3.0.0 through 3.0.49

Discovery Timeline

  • 2026-03-20 - CVE-2026-32935 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-32935

Vulnerability Analysis

This vulnerability is classified under CWE-208 (Observable Timing Discrepancy), representing a side-channel attack vector in cryptographic implementations. The flaw exists in the AES-CBC decryption routine where padding validation operations exhibit measurable timing differences based on whether the padding is valid or invalid.

In a properly implemented cryptographic system, operations should be constant-time to prevent attackers from inferring information about the plaintext or keys through timing analysis. However, the vulnerable versions of phpseclib process padding validation in a way that creates observable timing discrepancies. An attacker positioned to intercept encrypted traffic and measure server response times can systematically modify ciphertext blocks and observe the timing of error responses to incrementally decrypt the message.

The attack is network-accessible but requires high attack complexity as it demands precise timing measurements and multiple requests to successfully decrypt data. The primary impact is confidentiality loss, as successful exploitation allows unauthorized access to encrypted information.

Root Cause

The root cause lies in non-constant-time padding validation within the AES-CBC decryption implementation. When phpseclib processes PKCS#7 padding during decryption, the validation routine exhibits different execution times depending on the validity and nature of the padding bytes. This timing variance, while often measured in microseconds or milliseconds, provides sufficient information leakage for a determined attacker to mount a successful padding oracle attack over multiple iterations.

Attack Vector

The attack exploits the network-accessible decryption functionality provided by applications using phpseclib. An attacker follows this methodology:

  1. Intercepts or captures ciphertext encrypted with AES-CBC
  2. Modifies the last block of ciphertext and submits it to the target application
  3. Measures the response time with high precision
  4. Iterates through byte values, observing timing differences that indicate valid vs. invalid padding
  5. Uses the timing information to deduce the intermediate state and recover plaintext bytes
  6. Repeats the process block-by-block to decrypt the entire message

The vulnerability does not require authentication and can be exploited without user interaction. The attack complexity is considered high because successful exploitation requires the ability to make multiple requests, measure timing with sufficient precision, and potentially overcome network jitter.

Detection Methods for CVE-2026-32935

Indicators of Compromise

  • Unusual patterns of failed decryption attempts from the same source IP
  • High volume of requests to endpoints performing AES-CBC decryption
  • Requests with systematically modified ciphertext payloads
  • Statistical anomalies in decryption error rates from specific clients

Detection Strategies

  • Monitor application logs for repeated decryption failures with incrementally modified inputs
  • Implement rate limiting on cryptographic operations to detect and slow padding oracle attempts
  • Deploy network anomaly detection to identify timing-based attack patterns
  • Review dependency manifests for vulnerable phpseclib versions (1.0.26 and below, 2.0.0-2.0.51, 3.0.0-3.0.49)

Monitoring Recommendations

  • Enable detailed logging for cryptographic operations including timestamps and error types
  • Configure alerting for abnormal decryption failure rates from individual sources
  • Implement request timing monitoring to detect systematic probing behavior
  • Conduct regular dependency audits using tools like Composer audit to identify vulnerable libraries

How to Mitigate CVE-2026-32935

Immediate Actions Required

  • Update phpseclib to patched versions: 1.0.27, 2.0.52, or 3.0.50 immediately
  • Audit all PHP applications and dependencies for phpseclib usage
  • Review Composer lock files to identify transitive dependencies on vulnerable versions
  • Consider switching to authenticated encryption modes (AES-GCM) where possible as a defense-in-depth measure

Patch Information

The phpseclib maintainers have released patched versions that implement constant-time padding validation to eliminate the timing side-channel. The fix is available in:

  • Version 1.0.27 for the 1.x branch
  • Version 2.0.52 for the 2.x branch
  • Version 3.0.50 for the 3.x branch

The security fix can be reviewed in the GitHub Commit for phpseclib. Additional details are available in the GitHub Security Advisory GHSA-94g3-g5v7-q4jg.

Workarounds

  • If immediate patching is not possible, consider disabling AES-CBC mode and using alternative encryption modes
  • Implement network-level rate limiting on endpoints that perform decryption operations
  • Add artificial random delays to decryption responses to obscure timing information (temporary measure only)
  • Deploy a Web Application Firewall (WAF) with rules to detect rapid sequential requests with similar payloads
bash
# Update phpseclib via Composer
composer require phpseclib/phpseclib:^3.0.50

# For version 2.x branch
composer require phpseclib/phpseclib:^2.0.52

# For legacy version 1.x branch
composer require phpseclib/phpseclib:^1.0.27

# Verify installed version
composer show phpseclib/phpseclib

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPhpseclib

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/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:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-208
  • Vendor Resources
  • GitHub Commit for phpseclib

  • GitHub Security Advisory GHSA-94g3-g5v7-q4jg
  • Related CVEs
  • CVE-2026-40194: phpseclib Information Disclosure Flaw

  • CVE-2023-27560: Phpseclib DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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