VDB

CVE-2024-2408

CVE-2024-2408 PUBLISHED CVSS 5.9 MEDIUM

PHP is vulnerable to the Marvin Attack

Reported by php · Published June 9, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.2-xmlAmazon Linux8.2.21-1.amzn2023.0.1
php8.1-pdoAmazon Linux8.1.29-1.amzn2023.0.1
php8.1-intlAmazon Linux8.1.29-1.amzn2023.0.1
php8.2-pgsqlAmazon Linux8.2.21-1.amzn2023.0.1
php-8.2Chainguard8.2.20-r0
php8.1-processAmazon Linux8.1.29-1.amzn2023.0.1
php8.2-bcmathAmazon Linux8.2.21-1.amzn2023.0.1
php8.2-cliAmazon Linux8.2.21-1.amzn2023.0.1
php8.1-bcmathAmazon Linux8.1.29-1.amzn2023.0.1
php8.2-dbaAmazon Linux8.2.21-1.amzn2023.0.1
php8.1-pspellAmazon Linux8.1.29-1.amzn2023.0.1
php8.1-pgsqlAmazon Linux8.1.29-1.amzn2023.0.1

28 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*
amazon:2023php8.2-xml0
amazon:2023php8.1-pdo0
amazon:2023php8.1-intl0
amazon:2023php8.2-pgsql0
chainguardphp-8.20
amazon:2023php8.1-process0
amazon:2023php8.2-bcmath0
amazon:2023php8.2-cli0
amazon:2023php8.1-bcmath0
amazon:2023php8.2-dba0
amazon:2023php8.1-pspell0
amazon:2023php8.1-pgsql0
amazon:2023php8.2-pdo0
amazon:2023php8.1-xml0
amazon:2023php8.1-mysqlnd0
amazon:2023php8.2-soap0
amazon:2023php8.2-process0
amazon:2023php8.2-sodium0
amazon:2023php8.1-tidy0

…and 45 more

Timeline

  • Jun 9, 2024 CVE Published
  • Jun 10, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
  • Mar 14, 2025 PoC Published

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-2408
vulnetix vdb fixes CVE-2024-2408

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-2408/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›