7.5
CWE
400
Advisory Published
CVE Published
Updated

CVE-2024-2757: PHP mb_encode_mimeheader runs endlessly for some inputs

First published: Thu Apr 11 2024(Updated: )

Fixed bug GHSA-fjp9-9hwx-59fq (mb_encode_mimeheader runs endlessly for some inputs). (CVE-2024-2757)

Credit: security@php.net

Affected SoftwareAffected VersionHow to fix
PHP<8.3.6
8.3.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-2757?

    CVE-2024-2757 has been classified as a moderate severity vulnerability due to its potential to cause an infinite loop in the mb_encode_mimeheader function.

  • How do I fix CVE-2024-2757?

    To fix CVE-2024-2757, upgrade PHP to version 8.3.6 or later.

  • What versions of PHP are affected by CVE-2024-2757?

    CVE-2024-2757 affects PHP versions prior to 8.3.5.

  • What is the bug in CVE-2024-2757 about?

    The bug in CVE-2024-2757 causes the mb_encode_mimeheader function to run endlessly when it encounters certain long strings.

  • Is there a workaround for CVE-2024-2757 before upgrading?

    Currently, it is recommended to avoid using inputs that have long strings of non-space characters followed by a space as a temporary workaround for CVE-2024-2757.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203