ADVISORIES

GitHub Advisory Database

GHSA-f2qx-66wf-wvvx

phpseclib guardrails needed on OID length

Details

Impact

Any application using that loads untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc).

Patches

https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59

Workarounds

No.

Resources

https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59 https://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf

Affected packages

EcosystemPackageAffected versions
Packagistphpseclib/phpseclib
From 2.0.0 before 2.0.47 (fixed in 2.0.47)
Packagistphpseclib/phpseclib
From 3.0.0 before 3.0.36 (fixed in 3.0.36)
Packagistphpseclib/phpseclib
From 0.1.1 before 1.0.23 (fixed in 1.0.23)

References