CVE-2021-30130Phpseclib
High 7.5 No auth needed
Follow: this CVE · Phpseclib · Phpseclib We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Apr 6, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.
What to do
- Apply the vendor's security update for Phpseclib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib |
≥ 3.0.0 < 3.0.7 |
3.0.7 |
composer require "phpseclib/phpseclib:^3.0.7" |
| Packagist | phpseclib/phpseclib |
< 2.0.31 |
2.0.31 |
composer require "phpseclib/phpseclib:^2.0.31" |
Per OSV / GitHub Advisories (GHSA-vf4w-fg7r-5v94). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | < 2.0.31 |
| phpseclib | phpseclib | ≥ 3.0 < 3.0.7 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory