cve.bz

CVE-2024-2408 Observable Discrepancy

5.9 mediumExploit referenceEPSS 1.2%

Medium (5.9). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 68th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-03-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-203 Observable Discrepancy
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-2408 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-2408?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-2408?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-2408 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 8.1.* before 8.1.29
PHP Group PHPfrom 8.2.* before 8.2.20
PHP Group PHPfrom 8.3.* before 8.3.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12php8.28.2.18-1DEBIAN-CVE-2024-2408
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2024-2408
Red Hatenterprise_linux:8::baseosopenssl, openssl-libs, openssl-perl and 4 more1:1.1.1k-12.el8_9RHSA-2023:7877
AlmaLinux8openssl, openssl-libs, openssl-perl and 1 more1:1.1.1k-12.el8_9ALSA-2023:7877
Rocky Linux8openssl1:1.1.1k-12.el8_9RLSA-2023:7877
Azure Linux2php8.1.29-1AZL-42628
Azure Linux3php8.3.8-1AZL-42616

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The severity of this vulnerability is considered Moderate rather than Important due to the specific conditions required for exploitation and the complexity involved in executing the attack. While the timing side-channel can potentially be used to decrypt ciphertexts or forge signatures, it necessitates a high degree of precision and a large number of measurements to discern the timing differences accurately. Additionally, the attack requires the ability to send numerous crafted ciphertexts to the decryption function and accurately measure the response times, which might not be feasible in all environments. Therefore, while the vulnerability poses a real threat, its practical exploitation is significantly constrained by these technical challenges.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8openssl-1:1.1.1k-12.el8_9Fixed 2023-12-19RHSA-2023:7877
Red Hat Enterprise Linux 6phpOut of support scope
Red Hat Enterprise Linux 7phpOut of support scope
Red Hat Enterprise Linux 8php:8.0/phpWill not fix
Red Hat Enterprise Linux 8php:8.2/phpAffected
Red Hat Enterprise Linux 9phpWill not fix
Red Hat Enterprise Linux 9php:8.1/phpWill not fix
Red Hat Enterprise Linux 9php:8.2/phpWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-2408.

Attack patterns (CAPEC)

  • CAPEC-189 Black Box Reverse Engineering Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON