# CVE-2021-30130: Improper Certificate Validation in phpseclib

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-04-06T00:00:00.000Z
- Modified: 2026-09-10T03:49:04.088Z
- Also known as: GHSA-vf4w-fg7r-5v94
- Weaknesses: CWE-295, CWE-347
- Assigned by: mitre

## Description

phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpseclib/phpseclib (Packagist): from 3.0.0 before 3.0.7; before 2.0.31
- phpseclib phpseclib: before 2.0.31; from 3.0 before 3.0.7
- debian debian_linux: 10.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/phpseclib/phpseclib/pull/1635> (patch, third-party-advisory, web)
- <https://github.com/phpseclib/phpseclib/releases/tag/3.0.7> (release-notes, third-party-advisory, web)
- <https://github.com/phpseclib/phpseclib/releases/tag/2.0.31> (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)

## Sources

- CVE List: [CVE-2021-30130](https://www.cve.org/CVERecord?id=CVE-2021-30130), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-vf4w-fg7r-5v94](https://github.com/advisories/GHSA-vf4w-fg7r-5v94), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-30130](https://nvd.nist.gov/vuln/detail/CVE-2021-30130), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-30130 · Whole record: https://cve.day/CVE-2021-30130.json · Rebuilt by cve.day 2026-11-25T22:58:00.650Z
