Am I affected?
CVE-2024-2408
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.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 1.16% chance of exploitation activity in the next 30 days (top 33% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (php.net) | Fixed in |
|---|---|---|
| PHP 8.3 | PHP 8.3 only, 8.3.0 (including) to 8.3.8 (excluding) | 8.3.8 |
| PHP 8.2 | PHP 8.2 only, 8.2.0 (including) to 8.2.20 (excluding) | 8.2.20 |
| PHP 8.1 | PHP 8.1 only, 8.1.0 (including) to 8.1.29 (excluding) | 8.1.29 |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2024-11236 Critical 9.8 · PHP 8.3, 8.2, 8.1 · 2024-11-24
- CVE-2024-8932 Critical 9.8 · PHP 8.3, 8.2, 8.1 · 2024-11-22
- CVE-2024-4577 Critical 9.8 · PHP 8.3, 8.2, 8.1 · 2024-06-09
- CVE-2024-3566 Critical 9.8 · PHP 8.3, 8.2, 8.1 · 2024-04-10
- CVE-2024-1874 Critical 9.4 · PHP 8.3, 8.2, 8.1 · 2024-04-29
- CVE-2024-8926 High 8.8 · PHP 8.3, 8.2, 8.1 · 2024-10-08
Questions
- Which PHP versions are affected by CVE-2024-2408?
- php.net lists these affected ranges: PHP 8.3 only, 8.3.0 (including) to 8.3.8 (excluding); PHP 8.2 only, 8.2.0 (including) to 8.2.20 (excluding); PHP 8.1 only, 8.1.0 (including) to 8.1.29 (excluding).
- Which PHP version fixes CVE-2024-2408?
- According to php.net, the fix is in PHP 8.3.8, 8.2.20, 8.1.29 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2024-2408?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2024-2408 on NIST NVD and the php.net ChangeLog. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.