# CVE-2023-0056: Denial of service in haproxy

> An authenticated remote attacker can crash the HAProxy service by running a malicious server, impacting availability.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 23 Mar 2023
- **Updated:** 25 Feb 2025
- **Also known as:** BIT-haproxy-2023-0056, DEBIAN-CVE-2023-0056, GHSA-43q4-pf55-3xhc, MINI-5c52-c7pj-g84h, MINI-5gpm-hc6r-7m5j, MINI-g7fr-h7v4-5cxp, MINI-rq6f-cxvv-h78j, MINI-vj6c-fj6q-q5pr, MINI-vm9q-56c4-4x6x, RHBA-2023:0773, RHBA-2023:0898, RHBA-2023:1321, SUSE-SU-2023:0153-1, UBUNTU-CVE-2023-0056, USN-5819-1

## What is CVE-2023-0056?

CVE-2023-0056 is a medium-severity denial of service vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 23 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

An uncontrolled resource consumption vulnerability was discovered in HAProxy which could crash the service. This issue could allow an authenticated remote attacker to run a specially crafted malicious server in an OpenShift cluster. The biggest impact is to availability.

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2023-0056?

1 open source package ship an affected version, including haproxy. It affects 9 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `haproxy` | Bitnami | All versions | None |
| `haproxy` | Red Hat:openshift:4.10::el8 | All versions | 0:2.2.19-3.el8 |
| `haproxy-debugsource` | Red Hat:openshift:4.10::el8 | All versions | 0:2.2.19-3.el8 |
| `haproxy22` | Red Hat:openshift:4.10::el8 | All versions | 0:2.2.19-3.el8 |
| `haproxy22-debuginfo` | Red Hat:openshift:4.10::el8 | All versions | 0:2.2.19-3.el8 |
| `haproxy` | Red Hat:openshift:4.11::el8 | All versions | 0:2.2.24-2.el8 |
| `haproxy-debugsource` | Red Hat:openshift:4.11::el8 | All versions | 0:2.2.24-2.el8 |
| `haproxy22` | Red Hat:openshift:4.11::el8 | All versions | 0:2.2.24-2.el8 |
| `haproxy22-debuginfo` | Red Hat:openshift:4.11::el8 | All versions | 0:2.2.24-2.el8 |
| `haproxy` | Red Hat:openshift:4.9::el8 | All versions | 0:2.2.15-6.el8 |
| `haproxy-debugsource` | Red Hat:openshift:4.9::el8 | All versions | 0:2.2.15-6.el8 |
| `haproxy22` | Red Hat:openshift:4.9::el8 | All versions | 0:2.2.15-6.el8 |
| `haproxy22-debuginfo` | Red Hat:openshift:4.9::el8 | All versions | 0:2.2.15-6.el8 |
| `haproxy` | SUSE:Linux Enterprise High Availability Extension 15 SP4 | All versions | 2.4.8+git0.d1f8d41e0-150400.3.6.1 |
| `haproxy` | SUSE:Linux Enterprise Micro 5.3 | All versions | 2.4.8+git0.d1f8d41e0-150400.3.6.1 |
| `haproxy` | openSUSE:Leap 15.4 | All versions | 2.4.8+git0.d1f8d41e0-150400.3.6.1 |
| `haproxy` | openSUSE:Leap Micro 5.3 | All versions | 2.4.8+git0.d1f8d41e0-150400.3.6.1 |

Products: Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Haproxy Haproxy, Redhat Ceph Storage, Redhat Openshift Container Platform, Redhat Openshift Container Platform for Ibm Linuxone, Redhat Openshift Container Platform for Power, Redhat Openshift Container Platform Ibm Z Systems, Redhat Software Collections.

## How do I fix CVE-2023-0056?

Apply the vendor's patch.

## Is CVE-2023-0056 being exploited?

There is no known exploitation of CVE-2023-0056 in the wild and no public exploit code.

## Other vulnerabilities in Fedoraproject Extra Packages for Enterprise Linux

- [CVE-2023-34152](https://insights.sbomify.com/CVE-2023-34152/): Command injection in ImageMagick (critical 9.8)
- [CVE-2022-4170](https://insights.sbomify.com/CVE-2022-4170/): Code injection in rxvt-unicode (critical 9.8)
- [CVE-2022-40315](https://insights.sbomify.com/CVE-2022-40315/): Moodle Minor SQL injection risk in admin user browsing (critical 9.8)
- [CVE-2022-45152](https://insights.sbomify.com/CVE-2022-45152/): Moodle blind Server-Side Request Forgery (SSRF) vulnerability in LTI provider library (critical 9.1)
- [CVE-2022-24882](https://insights.sbomify.com/CVE-2022-24882/): Server side NTLM does not properly check parameters in FreeRDP (critical 9.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-0056 and fix it if it is affected.

What it is: CVE-2023-0056 is a medium-severity denial of service vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 23 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-0056 in the wild and no public exploit code.

Affected packages and fixed versions:
- haproxy (Bitnami): affected all versions; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-0056/ (Markdown: https://insights.sbomify.com/CVE-2023-0056/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-0056
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-0056
- OSV: https://osv.dev/vulnerability/CVE-2023-0056

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-0056/
Summaries are generated and may contain mistakes; the official description above is the record.
