Skip to main content
Network Thinking Solutions Logo

CVE-2024-2408

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.

All CVEs
CVE-2024-2408Published 6/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.

Vendor advisory
CVSS5.9Medium

Overview

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.

Published
6/9/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
php
php
≥ 8.1.0, < 8.1.29

Verify advisory

Source
php
php
≥ 8.2.0, < 8.2.20

Verify advisory

Source
php
php
≥ 8.3.0, < 8.3.8

Verify advisory

Source
fedora
fedoraproject
40

Verify advisory

Source
PHP
PHP Group
≥ 8.1.*, < 8.1.29

Verify advisory

Source
PHP
PHP Group
≥ 8.2.*, < 8.2.20

Verify advisory

Source
PHP
PHP Group
≥ 8.3.*, < 8.3.8

Verify advisory

Source
php
php
≥ 8.1.0, < 8.1.29

Verify advisory

Source
php
php
≥ 8.2.0, < 8.2.20

Verify advisory

Source
php
php
≥ 8.3.0, < 8.3.8

Verify advisory

Source
fedora
fedoraproject
40

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.9. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.