{"id":"UBUNTU-CVE-2023-27560","details":"Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.","modified":"2026-05-20T16:13:31.577829632Z","published":"2023-03-03T06:15:00Z","upstream":["CVE-2023-27560"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-27560"},{"type":"REPORT","url":"https://github.com/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-27560"}],"affected":[{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9-1","5.1-1","5.2-1","5.2-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.2-1ubuntu1","binary_name":"ldap-account-manager"},{"binary_version":"5.2-1ubuntu1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.1-1","2.0.1-1build1","2.0.1-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"php-phpseclib","binary_version":"2.0.1-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7-1","6.1-1","6.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"6.2-1"},{"binary_version":"6.2-1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.6-1","2.0.7-1","2.0.9-1","2.0.9-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.9-1ubuntu0.1~esm2","binary_name":"php-phpseclib"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"6.7-1","binary_name":"ldap-account-manager"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"6.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.21-2","2.0.23-2","2.0.23-2ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.23-2ubuntu0.1~esm2","binary_name":"php-phpseclib"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.5-1","7.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.7-1","binary_name":"ldap-account-manager"},{"binary_version":"7.7-1","binary_name":"ldap-account-manager-lamdaemon"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.30-2ubuntu1","2.0.34-1","2.0.35-1","2.0.36-1","2.0.36-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"php-phpseclib","binary_version":"2.0.36-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=esm-apps%2Fjammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.13-1ubuntu0.1~esm1","binary_name":"php-phpseclib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.3-1","8.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"8.5-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"8.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.44-1","2.0.45-1","2.0.46-1","2.0.47-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.47-1","binary_name":"php-phpseclib"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=noble"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.37-1","binary_name":"php-phpseclib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"9.0-1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"9.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.48-3"],"ecosystem_specific":{"binaries":[{"binary_name":"php-phpseclib","binary_version":"2.0.48-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.43-2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.43-2","binary_name":"php-phpseclib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"ldap-account-manager","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ldap-account-manager?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0-1","9.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"ldap-account-manager","binary_version":"9.0-1build1"},{"binary_name":"ldap-account-manager-lamdaemon","binary_version":"9.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.48-3","2.0.49-1","2.0.51-1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-phpseclib","binary_version":"2.0.51-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.43-2","3.0.44-1","3.0.47-1","3.0.49-1","3.0.49-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.49-1ubuntu1","binary_name":"php-phpseclib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-27560.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}