{"id":"GHSA-2f25-pfq3-c7h8","summary":"Phpseclib needs guardrails on large binaryfield integers","details":"### 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","aliases":["CVE-2023-49316"],"modified":"2026-05-08T23:26:11.544853Z","published":"2026-05-08T23:06:50Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-400","CWE-834"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-05-08T23:06:50Z"},"references":[{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49316"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml"},{"type":"PACKAGE","url":"https://github.com/phpseclib/phpseclib"},{"type":"WEB","url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.34"}],"affected":[{"package":{"name":"phpseclib/phpseclib","ecosystem":"Packagist","purl":"pkg:composer/phpseclib/phpseclib"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.34"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2f25-pfq3-c7h8/GHSA-2f25-pfq3-c7h8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}