Skip to content
Fencer Vulns
medium 5.9

CVE-2024-2408 json

PHP is vulnerable to the Marvin Attack

published 2024-06-06 2 y ago modified 2026-09-08 2 mo ago also BIT-libphp-2024-2408 , BIT-php-2024-2408 , BIT-php-min-2024-2408 , EUVD-2024-27360 , GHSA-hh26-4ppw-5864

cvss
5.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 67%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami libphp 8.1.29, 8.2.20, 8.3.8
  • bitnami php 8.1.29, 8.2.20, 8.3.8
  • bitnami php-min 8.1.29, 8.2.20, 8.3.8
  • PHP Group PHP 8.1.29, 8.2.20, 8.3.8
  • php php 8.1.29, 8.2.20, 8.3.8
  • php8.2 Debian 12 8.2.18-1

debian advisories DEBIAN-CVE-2024-2408

  • openssl RHEL 8 1:1.1.1k-12.el8_9
  • openssl-libs RHEL 8 1:1.1.1k-12.el8_9
  • openssl-perl RHEL 8 1:1.1.1k-12.el8_9

red hat advisories RHSA-2023:7877

  • openssl AlmaLinux 8 1:1.1.1k-12.el8_9
  • openssl-libs AlmaLinux 8 1:1.1.1k-12.el8_9
  • openssl-perl AlmaLinux 8 1:1.1.1k-12.el8_9

almalinux advisories ALSA-2023:7877

  • openssl Rocky Linux 8 1:1.1.1k-12.el8_9

rocky linux advisories RLSA-2023:7877

  • php Azure Linux 3.0 8.3.8-1
  • php CBL-Mariner 2.0 8.1.29-1

azure linux advisories AZL-42616AZL-42628

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-2408 updated cvss 5.9

php: potential exposure to Marvin attack via unsafe implementation of RSA decryption API

  • Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 php, php-gd, php-cli, php-dba, php-dbg, php-ffi, +18 more
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux BaseOS (v. 8) openssl 1.1.1k-12.el8_9, openssl-libs 1.1.1k-12.el8_9, openssl-perl 1.1.1k-12.el8_9
    fixed: vendor fix RHSA-2023:7877

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
19 mo ago

Exploit prediction

1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/php/php-src/security/advisories/GHSA-hh26-4ppw-5864 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CNA 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami libphp
<8.1.29
>=8.2.0, <8.2.20
>=8.3.0, <8.3.8
8.1.29
8.2.20
8.3.8
bitnami php
<8.1.29
>=8.2.0, <8.2.20
>=8.3.0, <8.3.8
8.1.29
8.2.20
8.3.8
bitnami php-min
<8.1.29
>=8.2.0, <8.2.20
>=8.3.0, <8.3.8
8.1.29
8.2.20
8.3.8

Affected products

  • PHP Group PHP
  • php php
  • fedoraproject fedora

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

The maintainers of php/php-src published their own advisory on GitHub. Reviewed sources take precedence over it.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.