p PatchFirst

CVE-2024-2408

CVE-2024-2408 · PHP is vulnerable to the Marvin Attack

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.9 · Medium · EPSS 1.2% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 8.1.*, < 8.1.29: Affected (semver)
    • ≥ 8.2.*, < 8.2.20: Affected (semver)
    • ≥ 8.3.*, < 8.3.8: Affected (semver)

    Update to 8.1.29; Update to 8.2.20; Update to 8.3.8

  • php8.2 Debian:12

    Versions
    • 8.2.10-1
    • 8.2.10-2
    • 8.2.12-1
    • 8.2.16-1
    • 8.2.16-2
    • 8.2.17-1
    • 8.2.18-1~deb12u1
    • 8.2.5-2
    • 8.2.7-1
    • 8.2.7-1.1
    • 8.2.7-1.2
    • 8.2.7-1~deb12u1
    Affected ranges
    • ECOSYSTEM: < 8.2.18-1

    Update to 8.2.18-1

  • php5 Ubuntu:Pro:14.04:LTS

    Versions
    • 5.5.3+dfsg-1ubuntu2
    • 5.5.3+dfsg-1ubuntu3
    • 5.5.6+dfsg-1ubuntu1
    • 5.5.6+dfsg-1ubuntu2
    • 5.5.8+dfsg-2ubuntu1
    • 5.5.9+dfsg-1ubuntu1
    • 5.5.9+dfsg-1ubuntu2
    • 5.5.9+dfsg-1ubuntu3
    • 5.5.9+dfsg-1ubuntu4
    • 5.5.9+dfsg-1ubuntu4.1
    • 5.5.9+dfsg-1ubuntu4.2
    • 5.5.9+dfsg-1ubuntu4.3
    • 5.5.9+dfsg-1ubuntu4.4
    • 5.5.9+dfsg-1ubuntu4.5
    • 5.5.9+dfsg-1ubuntu4.6
    • 5.5.9+dfsg-1ubuntu4.7
    • 5.5.9+dfsg-1ubuntu4.9
    • 5.5.9+dfsg-1ubuntu4.11
    • 5.5.9+dfsg-1ubuntu4.12
    • 5.5.9+dfsg-1ubuntu4.13
    • 5.5.9+dfsg-1ubuntu4.14
    • 5.5.9+dfsg-1ubuntu4.16
    • 5.5.9+dfsg-1ubuntu4.17
    • 5.5.9+dfsg-1ubuntu4.19
    • 5.5.9+dfsg-1ubuntu4.20
    • 5.5.9+dfsg-1ubuntu4.21
    • 5.5.9+dfsg-1ubuntu4.22
    • 5.5.9+dfsg-1ubuntu4.23
    • 5.5.9+dfsg-1ubuntu4.24
    • 5.5.9+dfsg-1ubuntu4.25
    • 5.5.9+dfsg-1ubuntu4.26
    • 5.5.9+dfsg-1ubuntu4.27
    • 5.5.9+dfsg-1ubuntu4.29
    • 5.5.9+dfsg-1ubuntu4.29+esm1
    • 5.5.9+dfsg-1ubuntu4.29+esm2
    • 5.5.9+dfsg-1ubuntu4.29+esm3
    • 5.5.9+dfsg-1ubuntu4.29+esm4
    • 5.5.9+dfsg-1ubuntu4.29+esm5
    • 5.5.9+dfsg-1ubuntu4.29+esm6
    • 5.5.9+dfsg-1ubuntu4.29+esm8
    • 5.5.9+dfsg-1ubuntu4.29+esm10
    • 5.5.9+dfsg-1ubuntu4.29+esm11
    • 5.5.9+dfsg-1ubuntu4.29+esm12
    • 5.5.9+dfsg-1ubuntu4.29+esm13
    • 5.5.9+dfsg-1ubuntu4.29+esm14
    • 5.5.9+dfsg-1ubuntu4.29+esm15
    • 5.5.9+dfsg-1ubuntu4.29+esm16
    • 5.5.9+dfsg-1ubuntu4.29+esm17
    • 5.5.9+dfsg-1ubuntu4.29+esm18
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →