{"id":"CVE-2023-27560","published":"2023-03-03T00:00:00Z","modified":"2025-03-06T20:19:00Z","title":"Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields","vendor":null,"product":null,"tier":"tail","description":{"text":"Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00872,"percentile":0.56511,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440","tags":[]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.19","tags":[]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.3},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-06T20:16:55.432124Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpseclib/phpseclib","vulnerableRanges":[">=3.0.0, <3.0.19"],"patched":["3.0.19"],"from":["GHSA-hm7p-r324-hhf3"],"provenance":"source"}],"summary":{"text":"The flaw is an infinite loop in the Math/PrimeField.php component of phpseclib 3.x, affecting versions before 3.0.19, triggered when composite primefields are used. An attacker with network access and no privileges or user interaction can trigger the endless loop, causing a denial of service (availability impact) with no confidentiality or integrity effects.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:14Z"},"euvd":{"id":"EUVD-2023-1036","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpseclib-cve-2023-27560","children":[{"from":"CVE-2023-27560","to":"CVE-2026-84308","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["phpseclib/Math/PrimeField/Integer.php"],"commits":["https://github.com/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440","https://github.com/phpseclib/phpseclib/commit/fb56bc5bb9009b54a6c26b31aeec8ed944f17373"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2021-30130","published":"2021-04-06","fixed":"3.0.7","kev":false,"link":{"from":"CVE-2021-30130","to":"CVE-2023-27560","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpseclib/phpseclib","fromFixed":"3.0.7","toFixed":"3.0.19","daysApart":696}]}},{"cve":"CVE-2023-27560","published":"2023-03-03","fixed":"3.0.19","kev":false},{"cve":"CVE-2023-52892","published":"2024-06-27","fixed":"3.0.33","kev":false,"link":{"from":"CVE-2023-27560","to":"CVE-2023-52892","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpseclib/phpseclib","fromFixed":"3.0.19","toFixed":"3.0.33","daysApart":482}]}},{"cve":"CVE-2023-49316","published":"2023-11-27","fixed":"3.0.34","kev":false},{"cve":"CVE-2024-27354","published":"2024-03-01","fixed":"3.0.36","kev":false}],"package":"Packagist:phpseclib/phpseclib"}}