Live threats

All CVEs / Php

CVE-2024-2408Php

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Jun 9, 2024
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-203
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 8.1.0 < 8.1.29
phpphp≥ 8.2.0 < 8.2.20
phpphp≥ 8.3.0 < 8.3.8
fedoraprojectfedora40

Official sources

References

Links published by the sources. Open them with care.