CVE-2023-40225: High severity HAProxy HAProxy vulnerability

Published Aug 10, 2023
·
Updated

HAProxy through 2.0.32, 2.1.x and 2.2.x through 2.2.30, 2.3.x and 2.4.x through 2.4.23, 2.5.x and 2.6.x before 2.6.15, 2.7.x before 2.7.10, and 2.8.x before 2.8.2 forwards empty Content-Length headers, violating RFC 9110 section 8.6. In uncommon cases, an HTTP/1 server behind HAProxy may interpret the payload as an extra request.

Affected Software

15 affected componentsFixes available
ubuntu/haproxy<2.0.31-0ubuntu0.2
2.0.31-0ubuntu0.2
ubuntu/haproxy<2.4.22-0ubuntu0.22.04.2
2.4.22-0ubuntu0.22.04.2
ubuntu/haproxy<2.6.9-1ubuntu1.1
2.6.9-1ubuntu1.1
ubuntu/haproxy<2.6.15-1ubuntu1
2.6.15-1ubuntu1
ubuntu/haproxy<2.6.15-1, <2.6.15, <2.7.10, <2.8.2
2.6.15-12.6.152.7.102.8.2
redhat/haproxy<2.6.15
2.6.15
redhat/haproxy<2.7.10
2.7.10
redhat/haproxy<2.8.2
2.8.2
debian/haproxy
1.8.19-1+deb10u31.8.19-1+deb10u52.2.9-2+deb11u62.6.12-1+deb12u12.9.9-1
HAProxy HAProxy<=2.0.32
HAProxy HAProxy>=2.2.0<=2.2.30
HAProxy HAProxy>=2.4.0<=2.4.23
HAProxy HAProxy>=2.5.0<2.6.15
HAProxy HAProxy>=2.7.0<2.7.10
HAProxy HAProxy>=2.8.0<2.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/haproxy to a version that resolves this vulnerability.

    Fixed in 2.0.31-0ubuntu0.2
  2. Upgrade

    Upgrade ubuntu/haproxy to a version that resolves this vulnerability.

    Fixed in 2.4.22-0ubuntu0.22.04.2
  3. Upgrade

    Upgrade ubuntu/haproxy to a version that resolves this vulnerability.

    Fixed in 2.6.9-1ubuntu1.1
  4. Upgrade

    Upgrade ubuntu/haproxy to a version that resolves this vulnerability.

    Fixed in 2.6.15-1ubuntu1
  5. Upgrade

    Upgrade ubuntu/haproxy to a version that resolves this vulnerability.

    Fixed in 2.6.15-1Fixed in 2.6.15Fixed in 2.7.10Fixed in 2.8.2
  6. Upgrade

    Upgrade debian/haproxy to a version that resolves this vulnerability.

    Fixed in 1.8.19-1+deb10u3Fixed in 1.8.19-1+deb10u5Fixed in 2.2.9-2+deb11u6Fixed in 2.6.12-1+deb12u1Fixed in 2.9.9-1
  7. Upgrade

    Upgrade redhat/haproxy to a version that resolves this vulnerability.

    Fixed in 2.6.15
  8. Upgrade

    Upgrade redhat/haproxy to a version that resolves this vulnerability.

    Fixed in 2.7.10
  9. Upgrade

    Upgrade redhat/haproxy to a version that resolves this vulnerability.

    Fixed in 2.8.2
  10. Upgrade

    Upgrade haproxy to a version that resolves this vulnerability.

    Fixed in 2.8.2
  11. Configuration

    In the affected HAProxy frontend(s), reject requests with an empty Content-Length header by configuring: http-request deny if { hdr_len(content-length) 0 }.

    HAProxy frontend http-request deny if { hdr_len(content-length) 0 } = enabled

Event History

Aug 10, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Aug 11, 2023
Data Sourced
via Red Hat·12:29 PM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:24 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-40225?

The severity of CVE-2023-40225 is high, with a severity value of 7.2.

2

How does CVE-2023-40225 affect HAProxy?

CVE-2023-40225 affects HAProxy versions through 2.0.32, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 2.8.x, and 2.9.x.

3

What is the remedy for CVE-2023-40225?

The remedy for CVE-2023-40225 is to upgrade to HAProxy version 2.6.15 or higher.

4

Where can I find more information about CVE-2023-40225?

You can find more information about CVE-2023-40225 at the following references: [link1](https://cwe.mitre.org/data/definitions/436.html), [link2](https://github.com/haproxy/haproxy/commit/6492f1f29d738457ea9f382aca54537f35f9d856), [link3](https://github.com/haproxy/haproxy/issues/2237).

5

What is the CWE ID of CVE-2023-40225?

The CWE ID of CVE-2023-40225 is CWE-444.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203