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

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.16%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-09T19:55:51.625Z
- Modified: 2026-09-08T08:48:18.385Z
- Also known as: BIT-LIBPHP-2024-2408, BIT-PHP-2024-2408, BIT-PHP-MIN-2024-2408, GHSA-hh26-4ppw-5864
- Weaknesses: CWE-203
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: php

## Description

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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.29; from 8.2.* before 8.2.20; from 8.3.* before 8.3.8
- php php: from 8.1.0 before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- fedoraproject fedora: 40
- libphp (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- php (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
- php-min (Bitnami): before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-hh26-4ppw-5864> (exploit, advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/> (web)
- <https://security.netapp.com/advisory/ntap-20250321-0008/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2408> (web)

## Sources

- CVE List: [CVE-2024-2408](https://www.cve.org/CVERecord?id=CVE-2024-2408), CVE Terms of Use, modified 2025-03-21
- NVD: [CVE-2024-2408](https://nvd.nist.gov/vuln/detail/CVE-2024-2408), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2024-2408](https://osv.dev/vulnerability/BIT-LIBPHP-2024-2408), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2024-2408](https://osv.dev/vulnerability/BIT-PHP-2024-2408), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2024-2408](https://osv.dev/vulnerability/BIT-PHP-MIN-2024-2408), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-2408 · Whole record: https://cve.day/CVE-2024-2408.json · Rebuilt by cve.day 2026-11-25T22:58:41.605Z
