HighGHSA-vf4w-fg7r-5v94CVE-2021-30130
Improper Certificate Validation in phpseclib
Published 7 Apr 2021 · Updated 10 Sept 2026
Affected packages
phpseclib/phpseclibComposer
- Affected
- >=3.0.0 <3.0.7
- Fixed in
- 3.0.7
Update to the fixed version for your release line, for example:
composer require phpseclib/phpseclib:^3.0.7phpseclib/phpseclibComposer
- Affected
- <2.0.31
- Fixed in
- 2.0.31
Update to the fixed version for your release line, for example:
composer require phpseclib/phpseclib:^2.0.31Details
phpseclib before 2.0.31 and 3.x before 3.0.7 mishandles RSA PKCS#1 v1.5 signature verification.
Is GHSA-vf4w-fg7r-5v94 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpseclib/phpseclib, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-30130
- Linkgithub.com/phpseclib/phpseclib/pull/1635
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2021-30130.yaml
- Linkgithub.com/phpseclib/phpseclib/releases/tag/2.0.31
- Linkgithub.com/phpseclib/phpseclib/releases/tag/3.0.7
- Linklists.debian.org/debian-lts-announce/2022/11/msg00024.html
- Linklists.debian.org/debian-lts-announce/2022/11/msg00025.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.