{"id":"CVE-2023-50981","aliases":["DEBIAN-CVE-2023-50981","EUVD-2023-55708","GHSA-wrgh-jm24-7hv6","JLSEC-2026-1273","SUSE-SU-2024:0157-1","UBUNTU-CVE-2023-50981","openSUSE-SU-2024:13550-1"],"status":"published","title":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of...","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","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.00762,"percentile":0.55792,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-835"],"published":"2023-12-18T00:00:00Z","modified":"2026-10-28T02:30:59Z","fixes":[{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","package":"libcryptopp","fixed_in":["8.6.0-150400.3.6.1"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP4","package":"libcryptopp","fixed_in":["8.6.0-150400.3.6.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.5","package":"libcryptopp","fixed_in":["8.6.0-150400.3.6.1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"libcryptopp","fixed_in":["8.9.0-2.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.7.0+git220824-1","8.8.0-1","8.8.0-2","8.9.0-1","8.9.0-1.1","8.9.0-1.1~exp1","8.9.0-2","8.9.0-3"]},{"source":"osv","ecosystem":"Debian:13","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.9.0-2","8.9.0-3"]},{"source":"osv","ecosystem":"Debian:14","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.9.0-2","8.9.0-3"]},{"source":"osv","ecosystem":"Julia","package":"cryptopp_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","package":"libcryptopp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.6.0-150400.3.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Real Time 15 SP4","package":"libcryptopp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.6.0-150400.3.6.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"libcryptopp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.6.0-150400.3.6.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.1-6","5.6.1-6+deb8u1build0.14.04.1","5.6.1-6+deb8u3build0.14.04.1","5.6.1-6+deb8u3ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.1-8","5.6.1-9","5.6.1-9ubuntu0.1","5.6.1-9ubuntu0.1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.4-8"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.4-9","5.6.4-9build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.0-1","8.6.0-2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.8.0-1","8.9.0-1","8.9.0-1.1","8.9.0-1.1build1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.9.0-1.1build1","8.9.0-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.9.0-2build1","8.9.0-3"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcrypto++","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.9.0-2","8.9.0-2build1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"libcryptopp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.9.0-2.1"}]}]}],"products":[{"vendor":"cryptopp","product":"crypto\\+\\+"}],"references":[{"url":"https://github.com/weidai11/cryptopp/issues/1249","tags":["x_transferred","Exploit","Issue Tracking","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50981","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wrgh-jm24-7hv6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/50xxx/CVE-2023-50981.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-50981","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2024/suse-su-20240157-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1218222","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2023-50981","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2023-50981","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-50981","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-50981","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T00:00:00Z","modified":"2025-05-07T20:40:09.701Z","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":"adp"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:35:34.923818Z"}],"euvd":[{"id":"EUVD-2023-55708","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T00:00:00Z","modified":"2025-05-07T20:40:09Z","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-02T20:32:52.039629Z"}],"ghsa":[{"id":"GHSA-wrgh-jm24-7hv6","title":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of...","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-27T21:30:58Z","modified":"2023-12-27T21:30:59Z","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-835"],"updated_at":"2026-11-02T14:55:16.928981Z"}],"nvd":[{"id":"CVE-2023-50981","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T04:15:51.147Z","modified":"2026-06-17T06:40:21.427Z","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"},{"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":"secondary"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:08:56.329586Z"}],"osv":[{"id":"CVE-2023-50981","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T00:00:00Z","modified":"2026-10-28T02:30:59.507126105Z","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:44:35.245372Z"},{"id":"DEBIAN-CVE-2023-50981","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T04:15:51.147Z","modified":"2026-10-26T18:03:07.138621141Z","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.586408Z"},{"id":"JLSEC-2026-1273","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2026-08-13T06:24:20.501Z","modified":"2026-08-13T06:30:03.123113944Z","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:47:18.159338Z"},{"id":"UBUNTU-CVE-2023-50981","description":"ModularSquareRoot in Crypto++ (aka cryptopp) through 8.9.0 allows attackers to cause a denial of service (infinite loop) via crafted DER public-key data associated with squared odd numbers, such as the square of 268995137513890432434389773128616504853.","status":"published","published":"2023-12-18T04:15:00Z","modified":"2026-10-17T12:57:22.856022261Z","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"},{"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":"openSUSE-SU-2024:13550-1","title":"libcryptopp-devel-8.9.0-2.1 on GA media","description":"These are all security issues fixed in the libcryptopp-devel-8.9.0-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:15:26.400699Z","updated_at":"2026-11-02T16:58:36.327643Z"},{"id":"SUSE-SU-2024:0157-1","title":"Security update for libcryptopp","description":"This update for libcryptopp fixes the following issues:\n\n- CVE-2023-50981: Fixed a potential denial of service issue via \n  crafted DER public key data (bsc#1218222).\n","status":"published","published":"2024-01-18T16:02:06Z","modified":"2026-02-04T04:23:21.80257Z","updated_at":"2026-11-02T15:53:54.239786Z"}]}}
