CVE-2024-2408
published medium CVSS 3.1 · 5.9PHP is vulnerable to the Marvin Attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PHP Group | — | PHP8.1.* to < 8.1.29 · 8.2.* to < 8.2.20 · 8.3.* to < 8.3.8 · Other versions: affected | Affected | Not stated | php |
| php | — | php8.1.0 to < 8.1.29 · 8.2.0 to < 8.2.20 · 8.3.0 to < 8.3.8 · Other versions: affected | Affected | Not stated | CISA-ADP |
| fedoraproject | — | fedora40 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PHP8.1-2024-005 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-654 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | openssl | Advisory build | 1:1.1.1k-12.el8_9 | ALSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | opensslaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
Show 59 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-678 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | phpaarch64 | Listed in advisory | Not stated | ALAS2PHP8.1-2024-005 |
| Rocky Linux | 8 | opensslsrc | Listed in advisory | Not stated | RLSA-2023:7877 |
| AlmaLinux | 8 | openssl-devel | Advisory build | 1:1.1.1k-12.el8_9 | ALSA-2023:7877 |
| AlmaLinux | 8 | openssl-libs | Advisory build | 1:1.1.1k-12.el8_9 | ALSA-2023:7877 |
| AlmaLinux | 8 | openssl-perl | Advisory build | 1:1.1.1k-12.el8_9 | ALSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | opensslppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssls390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | opensslsrc | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | opensslx86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debuginfoaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debuginfoi686 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debuginfoppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debuginfos390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debuginfox86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debugsourceaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debugsourcei686 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debugsourceppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debugsources390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-debugsourcex86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-develaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-develi686 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-develppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-devels390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-develx86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libsaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libsi686 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libsppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libss390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libsx86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libs-debuginfoaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libs-debuginfoi686 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libs-debuginfoppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libs-debuginfos390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-libs-debuginfox86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-perlaarch64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-perlppc64le | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-perls390x | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Red Hat Enterprise Linux | RHEL-8 | openssl-perlx86_64 | Advisory build | 1:1.1.1k-12.el8_9 | RHSA-2023:7877 |
| Amazon Linux | AL2 | phpsrc | Listed in advisory | Not stated | ALAS2PHP8.1-2024-005 |
| Amazon Linux | AL2 | phpx86_64 | Listed in advisory | Not stated | ALAS2PHP8.1-2024-005 |
| Amazon Linux | AL2023 | php8.1aarch64 | Listed in advisory | Not stated | ALAS2023-2024-654 |
| Amazon Linux | AL2023 | php8.1src | Listed in advisory | Not stated | ALAS2023-2024-654 |
| Amazon Linux | AL2023 | php8.1x86_64 | Listed in advisory | Not stated | ALAS2023-2024-654 |
| Amazon Linux | AL2023 | php8.2aarch64 | Listed in advisory | Not stated | ALAS2023-2024-678 |
| Amazon Linux | AL2023 | php8.2src | Listed in advisory | Not stated | ALAS2023-2024-678 |
| Amazon Linux | AL2023 | php8.2x86_64 | Listed in advisory | Not stated | ALAS2023-2024-678 |
| Rocky Linux | 8 | opensslx86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-debuginfoi686 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-debugsourcei686 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-develi686 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-develx86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-libsi686 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-libsx86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-libs-debuginfoi686 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-libs-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
| Rocky Linux | 8 | openssl-perlx86_64 | Listed in advisory | Not stated | RLSA-2023:7877 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PHP Group | PHP | 8.1.* to < 8.1.29 (affected · semver)8.2.* to < 8.2.20 (affected · semver)8.3.* to < 8.3.8 (affected · semver)Default: affected | php · cna |
| php | php | 8.1.0 to < 8.1.29 (affected · semver)8.2.0 to < 8.2.20 (affected · semver)8.3.0 to < 8.3.8 (affected · semver)Default: affected | CISA-ADP · adp |
| fedoraproject | fedora | 40 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-203 CWE-203 Observable Discrepancy
References
4- https://github.com/php/php-src/security/advisories/GHSA-hh26-4ppw-5864
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
- https://security.netapp.com/advisory/ntap-20250321-0008/
Provider assertions
3php · cna
PHP is vulnerable to the Marvin Attack
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 72d4bdb73dd18a84d58da399040ad3efc735bcee235ad46d26c0dcd651948d8e
- Ingested
- 23 Sep 2026, 08:21:43 UTC
- Source record
- Official CVE record