CVE-2024-27354
An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a
02 Description
An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.60% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 48.5% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVD analysis status
- Analyzed. NVD last modified this record on 2026-06-17.
- Red Hat severity
- No Red Hat rating. Red Hat rates the CVEs that affect its products.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2024-03-01 00:00Z2 YR AGO
- Last updated
- 2025-04-22 15:44Z1 YR AGO
- Reserved
- 2024-02-25
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- High (CVSS 7.5)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400Uncontrolled Resource ConsumptionClass
- Data version
- 5.1
- Document digest
- 1a64a3eedb8f25ef5a3bbe942f44903614d29e975b98de898955da8cd886658b
05 Affected products
06 References
- github.comhttps://github.com/phpseclib/phpseclib/blob/master/phpseclib/Math/PrimeField.php#L49
- gist.github.comhttps://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b
- lists.debian.org[debian-lts-announce] 20240305 [SECURITY] [DLA 3749-1] phpseclib security updatehttps://lists.debian.org/debian-lts-announce/2024/03/msg00002.html
- lists.debian.org[debian-lts-announce] 20240305 [SECURITY] [DLA 3750-1] php-phpseclib security updatehttps://lists.debian.org/debian-lts-announce/2024/03/msg00003.html
07 Fixed in
Debian 12
- php-phpseclib Fixed in 2.0.42-1+deb12u2
- php-phpseclib3 Fixed in 3.0.19-1+deb12u3
- phpseclib Fixed in 1.0.20-1+deb12u2
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- php-phpseclib Fixed in 2.0.47-1
- php-phpseclib3 Fixed in 3.0.36-1
- phpseclib Fixed in 1.0.23-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- php-phpseclib Fixed in 2.0.47-1
- php-phpseclib3 Fixed in 3.0.36-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- phpseclib Fixed in 1.0.20-1+deb12u3build0.22.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- php-phpseclib Fixed in 2.0.1-1ubuntu0.1~esm2Available with Ubuntu Pro: https://ubuntu.com/pro
- phpseclib Fixed in 1.0.1-3ubuntu0.1+esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- php-phpseclib Fixed in 2.0.9-1ubuntu0.1~esm2Available with Ubuntu Pro: https://ubuntu.com/pro
- phpseclib Fixed in 1.0.9-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 20.04 LTS
- php-phpseclib Fixed in 2.0.23-2ubuntu0.1~esm2Available with Ubuntu Pro: https://ubuntu.com/pro
- phpseclib Fixed in 1.0.18-2ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 22.04 LTS
- php-phpseclib Fixed in 2.0.36-1ubuntu0.1~esm2Available with Ubuntu Pro: https://ubuntu.com/pro
- php-phpseclib3 Fixed in 3.0.13-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
- phpseclib Fixed in 1.0.20-1ubuntu0.1~esm1Available with Ubuntu Pro: https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.