CVE-2024-2408

Public Exploit
PHP is vulnerable to the Marvin Attack

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.

Remediation

Solution:

  • Use a recent patched version of OpenSSL.

Category

5.9
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.08%
Third-Party Advisory github.com Third-Party Advisory fedoraproject.org
Affected: PHP Group PHP
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-2408?
CVE-2024-2408 has been scored as a medium severity vulnerability.
How to fix CVE-2024-2408?
To fix CVE-2024-2408: Use a recent patched version of OpenSSL.
Is CVE-2024-2408 being actively exploited in the wild?
It is possible that CVE-2024-2408 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-2408?
CVE-2024-2408 affects PHP Group PHP.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.