Critical Security Update for php-phpseclib: Addressing Vulnerability CVE-2026-32935

php-phpseclib Updated 29 Mar 2026

Summary

29/03/2026
N/A
Yes i
Unrated
Not published

DSA-6186-1: php-phpseclib - security update. Affects php-phpseclib versions < 2.0.42-1+deb12u3. Fixed in 2.0.42-1+deb12u3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

php-phpseclib is a popular PHP library that provides a pure PHP implementation of various cryptographic algorithms. It is widely used for secure data transmission and encryption in PHP applications. The library's functionality includes support for RSA, AES, and other cryptographic protocols, making it essential for developers who prioritize security in their applications. However, like any software, it can be susceptible to vulnerabilities that may compromise the security of applications utilizing it.

Vulnerability Detail

The vulnerability identified as CVE-2026-32935 affects php-phpseclib versions prior to 2.0.42-1+deb12u3 for Debian 12 and 2.0.48-3+deb13u1 for Debian 13. This security flaw could allow an attacker to exploit weaknesses in the cryptographic implementations, potentially leading to unauthorized access to sensitive data or the ability to perform malicious actions within the application. The origin of this vulnerability stems from insufficient validation of cryptographic parameters, which could be manipulated by an attacker.

How To Fix

Minimum fixed version

2.0.42-1+deb12u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php-phpseclib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider implementing additional input validation and sanitization in your application to mitigate potential exploitation of this vulnerability. However, this is only a temporary measure and does not replace the need for a proper update.

Conclusion

The php-phpseclib library has a critical vulnerability that needs immediate attention. By updating to the latest patched versions, you can ensure the security of your applications. Always monitor for vulnerabilities using tools like Vulert to stay informed about potential risks.

See every vulnerability recorded for php-phpseclib →

Share this vulnerability

FAQ

CVE-2026-32935 is a security vulnerability in the php-phpseclib library that could allow attackers to exploit weaknesses in cryptographic implementations.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Failing to update php-phpseclib may leave your application vulnerable to attacks that could compromise sensitive data and application integrity.

Yes, implementing additional input validation and sanitization can help mitigate the risk until you can update the package.

You can find detailed information about this vulnerability in the Debian security advisory DSA-6186-1 and on the CVE database.

Related vulnerabilities

Recent vulnerabilities recorded for php-phpseclib.

How To Fix

Minimum fixed version

2.0.42-1+deb12u3

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php-phpseclib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback