CVEfocus › CVE database › CVE-2024-2408

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

CVSS 5.9 MediumEPSS 1.3% (higher than 71% of CVEs)Published 2024-06-09Updated 2025-03-21Assigner: php

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.

CWE-203

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
40Fix pending
77Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04php8.3Not affected
vulnerable_code_not_present
Ubuntu 22.04php8.1Not affected
vulnerable_code_not_present
Ubuntu 14.04php5Fix pendingUBUNTU-CVE-2024-2408
Debian 12php8.2Fixed8.2.18-1DEBIAN-CVE-2024-2408
Red Hat Enterprise Linux 9phpWill not fix
Will not fix
Red Hat Enterprise Linux 9php-bcmathWill not fix
Will not fix
Red Hat Enterprise Linux 9php-cliWill not fix
Will not fix
Red Hat Enterprise Linux 9php-commonWill not fix
Will not fix
Red Hat Enterprise Linux 9php-dbaWill not fix
Will not fix
Red Hat Enterprise Linux 9php-dbgWill not fix
Will not fix
Red Hat Enterprise Linux 9php-develWill not fix
Will not fix
Red Hat Enterprise Linux 9php-embeddedWill not fix
Will not fix
Red Hat Enterprise Linux 9php-enchantWill not fix
Will not fix
Red Hat Enterprise Linux 9php-ffiWill not fix
Will not fix
Red Hat Enterprise Linux 9php-fpmWill not fix
Will not fix
Red Hat Enterprise Linux 9php-gdWill not fix
Will not fix
Red Hat Enterprise Linux 9php-gmpWill not fix
Will not fix
Red Hat Enterprise Linux 9php-intlWill not fix
Will not fix
Red Hat Enterprise Linux 9php-ldapWill not fix
Will not fix
Red Hat Enterprise Linux 9php-mbstringWill not fix
Will not fix
Red Hat Enterprise Linux 9php-mysqlndWill not fix
Will not fix
Red Hat Enterprise Linux 9php-odbcWill not fix
Will not fix
Red Hat Enterprise Linux 9php-opcacheWill not fix
Will not fix
Red Hat Enterprise Linux 9php-pdoWill not fix
Will not fix
Red Hat Enterprise Linux 9php-pgsqlWill not fix
Will not fix
Red Hat Enterprise Linux 9php-processWill not fix
Will not fix
Red Hat Enterprise Linux 9php-snmpWill not fix
Will not fix
Red Hat Enterprise Linux 9php-soapWill not fix
Will not fix
Red Hat Enterprise Linux 9php-xmlWill not fix
Will not fix
Red Hat Enterprise Linux 8apcu-panelFix pending
Affected
Red Hat Enterprise Linux 8libzipFix pending
Affected
Red Hat Enterprise Linux 8libzip-develFix pending
Affected
Red Hat Enterprise Linux 8libzip-toolsFix pending
Affected
Red Hat Enterprise Linux 8opensslFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-develFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-libsFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8openssl-perlFixed1:1.1.1k-12.el8_9RHSA-2023:7877
Red Hat Enterprise Linux 8phpFix pending
Affected
Red Hat Enterprise Linux 8php-bcmathFix pending
Affected
Red Hat Enterprise Linux 8php-cliFix pending
Affected
Red Hat Enterprise Linux 8php-commonFix pending
Affected
Red Hat Enterprise Linux 8php-dbaFix pending
Affected
Red Hat Enterprise Linux 8php-dbgFix pending
Affected
Red Hat Enterprise Linux 8php-develFix pending
Affected
Red Hat Enterprise Linux 8php-embeddedFix pending
Affected
Red Hat Enterprise Linux 8php-enchantFix pending
Affected
Red Hat Enterprise Linux 8php-ffiFix pending
Affected
Red Hat Enterprise Linux 8php-fpmFix pending
Affected
Red Hat Enterprise Linux 8php-gdFix pending
Affected
Red Hat Enterprise Linux 8php-gmpFix pending
Affected
Red Hat Enterprise Linux 8php-intlFix pending
Affected
Red Hat Enterprise Linux 8php-jsonFix pending
Affected
Red Hat Enterprise Linux 8php-ldapFix pending
Affected
Red Hat Enterprise Linux 8php-mbstringFix pending
Affected
Red Hat Enterprise Linux 8php-mysqlndFix pending
Affected
Red Hat Enterprise Linux 8php-odbcFix pending
Affected
Red Hat Enterprise Linux 8php-opcacheFix pending
Affected
Red Hat Enterprise Linux 8php-pdoFix pending
Affected
Red Hat Enterprise Linux 8php-pearFix pending
Affected
Red Hat Enterprise Linux 8php-pecl-apcuFix pending
Affected
Red Hat Enterprise Linux 8php-pecl-apcu-develFix pending
Affected
Red Hat Enterprise Linux 8php-pecl-rrdFix pending
Affected
Red Hat Enterprise Linux 8php-pecl-xdebugFix pending
Affected
Red Hat Enterprise Linux 8php-pecl-xdebug3Fix pending
Affected
Red Hat Enterprise Linux 8php-pecl-zipFix pending
Affected
Red Hat Enterprise Linux 8php-pgsqlFix pending
Affected
Red Hat Enterprise Linux 8php-processFix pending
Affected
Red Hat Enterprise Linux 8php-recodeFix pending
Affected
Red Hat Enterprise Linux 8php-snmpFix pending
Affected
Red Hat Enterprise Linux 8php-soapFix pending
Affected
Red Hat Enterprise Linux 8php-xmlFix pending
Affected
Red Hat Enterprise Linux 8php-xmlrpcFix pending
Affected
Red Hat Enterprise Linux 7phpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-mysqlndWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 7php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6phpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-bcmathWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-cliWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-dbaWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-embeddedWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-enchantWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-fpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-gdWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-imapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-intlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mbstringWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-mysqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-odbcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pdoWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pgsqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-processWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-pspellWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-recodeWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-snmpWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-soapWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-tidyWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-xmlrpcWill not fix
Out of support scope
Red Hat Enterprise Linux 6php-ztsWill not fix
Out of support scope
AlmaLinux 8opensslFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-develFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-libsFixed1:1.1.1k-12.el8_9ALSA-2023:7877
AlmaLinux 8openssl-perlFixed1:1.1.1k-12.el8_9ALSA-2023:7877
Rocky Linux 8opensslFixed1:1.1.1k-12.el8_9RLSA-2023:7877

What the vendor says

As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Use a recent patched version of OpenSSL.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.