phpseclib/phpseclib vulnerabilities
PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.
- Registry
- Composer
- Latest
- 4.0.3
- License
- MIT
11 known advisories
The latest version, 4.0.3, is not affected by any of them. Projects on older versions may be.
composer require phpseclib/phpseclib:^4.0.3Is your project on an affected phpseclib/phpseclib?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for phpseclib/phpseclib
phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery
- Affected
- <3.0.57 · >=4.0.0 <4.0.1
- Fixed in
- 3.0.57, 4.0.1
phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access
- Affected
- >=0.1.1 <1.0.30 · >=2.0.0 <2.0.55 · >=3.0.0 <3.0.54
- Fixed in
- 1.0.30, 2.0.55, 3.0.54
Phpseclib needs guardrails on large binaryfield integers
- Affected
- >=3.0.0 <3.0.34
- Fixed in
- 3.0.34
phpseclib guardrails needed on OID length
- Affected
- >=2.0.0 <2.0.47 · >=3.0.0 <3.0.36 · >=0.1.1 <1.0.23
- Fixed in
- 1.0.23, 2.0.47, 3.0.36
phpseclib: guardrails needed on isPrime and randomPrime
- Affected
- >=0.1.1 <1.0.23 · >=2.0.0 <2.0.47 · >=3.0.0 <3.0.36
- Fixed in
- 1.0.23, 2.0.47, 3.0.36
phpseclib has a CVE-2024-27355 mitigation bypass — OID amplification DoS in ASN1::decodeOID()
- Affected
- >=0.1.1 <1.0.29 · >=2.0.0 <2.0.54 · >=3.0.0 <3.0.52
- Fixed in
- 1.0.29, 2.0.54, 3.0.52
phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
- Affected
- >=0.1.1 <1.0.28 · >=2.0.0 <2.0.53 · >=3.0.0 <3.0.51
- Fixed in
- 1.0.28, 2.0.53, 3.0.51
phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
- Affected
- >=3.0.0 <3.0.50 · >=2.0.0 <2.0.52 · >=0.1.1 <1.0.27
- Fixed in
- 1.0.27, 2.0.52, 3.0.50
Name confusion in x509 Subject Alternative Name fields
- Affected
- <1.0.22 · >=2.0.0 <2.0.46 · >=3.0.0 <3.0.33
- Fixed in
- 1.0.22, 2.0.46, 3.0.33
phpseclib Infinite Loop vulnerability
- Affected
- >=3.0.0 <3.0.19
- Fixed in
- 3.0.19
Improper Certificate Validation in phpseclib
- Affected
- >=3.0.0 <3.0.7 · <2.0.31
- Fixed in
- 2.0.31, 3.0.7
Is your phpseclib/phpseclib version vulnerable?
Which of your client projects still run an old phpseclib/phpseclib?
NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other Composer packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.