# CVE-2024-2408: PHP is vulnerable to the Marvin Attack

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-09 · Modified: 2025-03-21
- Aliases: UBUNTU-CVE-2024-2408, DEBIAN-CVE-2024-2408, CGA-49wv-hjj9-24gv, CGA-c95g-654j-2wpp, CGA-pv8c-prhg-qp9v, CGA-v674-pqr7-565g
- Record: https://cvemate.com/vulnerability/CVE-2024-2408 · JSON: https://cvemate.com/vulnerability/CVE-2024-2408/json

## Description

```text
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request:  https://github.com/openssl/openssl/pull/13817  (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.

PHP Windows builds for the versions 8.1.29, 8.2.20 and 8.3.8 and above include OpenSSL patches that fix the vulnerability.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.158%, percentile 68.155%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard php-8.1 (Chainguard): \< 8.1.29-r0
- chainguard php-8.2 (Chainguard): \< 8.2.20-r0
- wolfi php-8.1 (Wolfi): \< 8.1.29-r0
- wolfi php-8.2 (Wolfi): \< 8.2.20-r0
- debian php8.2 (Debian): \< 8.2.18-1
- ubuntu php5 (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 40
- php group php: ≥ 8.1.\*, \< 8.1.29 \| ≥ 8.2.\*, \< 8.2.20 \| ≥ 8.3.\*, \< 8.3.8
- php php: ≥ 8.1.0, \< 8.1.29 \| ≥ 8.2.0, \< 8.2.20 \| ≥ 8.3.0, \< 8.3.8

## References

- <https://github.com/php/php-src/security/advisories/GHSA-hh26-4ppw-5864>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/>
- <https://security.netapp.com/advisory/ntap-20250321-0008/>
- <https://ubuntu.com/security/CVE-2024-2408>
- <https://www.cve.org/CVERecord?id=CVE-2024-2408>
- <https://ubuntu.com/security/notices/USN-6663-1>
- <https://ubuntu.com/security/notices/USN-6663-2>
- <https://ubuntu.com/security/notices/USN-6663-3>
- <https://security-tracker.debian.org/tracker/CVE-2024-2408>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2408.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2408>
- <https://github.com/php/php-src>

---

Data as of 2026-12-05T03:44:16.313Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
