{"id":"CVE-2023-49316","aliases":["DEBIAN-CVE-2023-49316","EUVD-2023-2993","GHSA-2f25-pfq3-c7h8","GHSA-jpr7-q523-hx25","UBUNTU-CVE-2023-49316"],"status":"published","title":"Phpseclib needs guardrails on large binaryfield integers","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.00783,"percentile":0.56465,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400","CWE-834"],"published":"2023-11-27T00:00:00Z","modified":"2026-10-28T02:30:48Z","fixes":[{"ecosystem":"Packagist","package":"phpseclib/phpseclib","fixed_in":["3.0.34"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"php-phpseclib3","fixed_in":["3.0.19-1+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-phpseclib3","fixed_in":["3.0.34-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-phpseclib3","fixed_in":["3.0.34-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"phpseclib/phpseclib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.34"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.19-1+deb12u1"}]}],"versions":["3.0.19-1"]},{"source":"osv","ecosystem":"Debian:13","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.34-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.34-1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"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"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.9-1","3.0.10-1","3.0.12-2","3.0.13-1","3.0.13-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"php-phpseclib3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.21-2","3.0.33-1","3.0.34-1","3.0.35-1","3.0.37-1"]}],"products":[{"vendor":"phpseclib","product":"phpseclib"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f","tags":["x_transferred","Patch","fix","web","report"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.34","tags":["x_transferred","Release Notes","web","report"]},{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-49316","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-2f25-pfq3-c7h8"},{"url":"https://github.com/advisories/GHSA-jpr7-q523-hx25","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49316.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-49316","tags":["advisory"]},{"url":"https://github.com/phpseclib/phpseclib","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2023-49316","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-49316","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-49316","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T00:00:00Z","modified":"2024-08-02T21:53:45.335Z","updated_at":"2026-11-02T14:35:12.998024Z"}],"euvd":[{"id":"EUVD-2023-2993","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T00:00:00Z","modified":"2024-08-02T21:53:45Z","updated_at":"2026-11-03T03:49:56.293511Z"}],"ghsa":[{"id":"GHSA-2f25-pfq3-c7h8","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","status":"published","published":"2026-05-08T23:06:50Z","modified":"2026-05-08T23:06:50Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-834"],"updated_at":"2026-11-02T14:40:05.816188Z"},{"id":"GHSA-jpr7-q523-hx25","title":"Duplicate Advisory: phpseclib vulnerable to denial of service","description":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2f25-pfq3-c7h8. This link is maintained to preserve external references.\n\n### Original Description\nIn Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees in binary fields can lead to a denial of service.","status":"withdrawn","published":"2023-11-27T18:31:14Z","modified":"2026-05-08T23:06:39Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-834"],"updated_at":"2026-11-02T14:40:05.816188Z"}],"nvd":[{"id":"CVE-2023-49316","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T18:15:07.537Z","modified":"2026-06-17T06:35:48.733Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-834"],"updated_at":"2026-11-02T14:08:49.393375Z"}],"osv":[{"id":"DEBIAN-CVE-2023-49316","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T18:15:07.537Z","modified":"2026-10-26T18:02:50.160265131Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:40.275853Z"},{"id":"GHSA-2f25-pfq3-c7h8","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","status":"published","published":"2026-05-08T23:06:50Z","modified":"2026-05-08T23:26:11.544853Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-834"],"updated_at":"2026-11-02T15:46:34.338541Z"},{"id":"GHSA-jpr7-q523-hx25","title":"Duplicate Advisory: phpseclib vulnerable to denial of service","description":"### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2f25-pfq3-c7h8. This link is maintained to preserve external references.\n\n### Original Description\nIn Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees in binary fields can lead to a denial of service.","status":"withdrawn","published":"2023-11-27T18:31:14Z","modified":"2026-09-10T03:50:04.237600546Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400","CWE-834"],"updated_at":"2026-11-02T15:46:50.687609Z"},{"id":"UBUNTU-CVE-2023-49316","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T18:15:00Z","modified":"2025-10-24T05:02:21Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:23.935133Z"},{"id":"CVE-2023-49316","description":"In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.","status":"published","published":"2023-11-27T00:00:00Z","modified":"2026-10-28T02:30:48.684772241Z","updated_at":"2026-11-02T15:44:34.72355Z"}]}}
