{"id":"GHSA-2f25-pfq3-c7h8","aliases":["CVE-2023-49316"],"title":"Phpseclib needs guardrails on large binaryfield integers","description":"### Impact\nAnyone loading untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc)\n\n### Patches\nhttps://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f\n\n### Workarounds\nNo.\n\n### References\nhttps://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f\nhttps://www.usenix.org/system/files/usenixsecurity25-shi-bing.pdf","severity":"high","score":7.5,"published":"2026-05-08T23:06:50.000Z","modified":"2026-05-08T23:26:11.544Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"phpseclib/phpseclib","ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.0.34"}],"type":"ECOSYSTEM"}],"versions":["3.0.0","3.0.1","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.0.17","3.0.18","3.0.19","3.0.2","3.0.20","3.0.21","3.0.22","3.0.23","3.0.3","3.0.33","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9"],"fixed":["3.0.34"]}],"references":["https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8","https://nvd.nist.gov/vuln/detail/CVE-2023-49316","https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f","https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml","https://github.com/phpseclib/phpseclib","https://github.com/phpseclib/phpseclib/releases/tag/3.0.34"],"sources":[{"name":"OSV","id":"GHSA-2f25-pfq3-c7h8","modified":"2026-05-08T23:26:11.544853Z","url":"https://osv.dev/vulnerability/GHSA-2f25-pfq3-c7h8"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5}]}