CVE-2021-30130
HIGH 7.5CVSS 3.1Improper Certificate Validation in phpseclib
phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.
- Published
- 6 Apr 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-295CWE-347
- Also known as
- GHSA-vf4w-fg7r-5v94
- Sources
- NVDJSONOSV GHSA-vf4w-fg7r-5v94JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpseclib | phpseclibcpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:* |
< 2.0.31 | 2.0.31 |
| NVD | phpseclib | phpseclibcpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:* |
>= 3.0, < 3.0.7 | 3.0.7 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.7 | 3.0.7 |
| OSV | Packagist | phpseclib/phpseclib | < 2.0.31 | 2.0.31 |
References
- https://github.com/phpseclib/phpseclib/pull/1635 · Patch, Third Party Advisory, WEB
- https://github.com/phpseclib/phpseclib/releases/tag/2.0.31 · Release Notes, Third Party Advisory, WEB
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.7 · Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/11/msg00024.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2022/11/msg00025.html · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-30130 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2021-30130.yaml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 6 Apr 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Apr 2021)