CVE-2023-40175Inconsistent Interpretation of HTTP Requests in puma
Puma is a Ruby/Rack web server built for parallelism. Prior to versions 6.3.1 and 5.6.7, puma exhibited incorrect behavior when parsing chunked transfer encoding bodies and zero-length Content-Length headers in a way that allowed HTTP request smuggling. Severity of this issue is highly dependent on the nature of the web site using puma is. This could be caused by either incorrect parsing of trailing fields in chunked transfer encoding bodies or by parsing of blank/zero-length Content-Length headers. Both issues have been addressed and this vulnerability has been fixed in versions 6.3.1 and 5.6.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.
What to do
Fixed builds are available from Debian, RubyGems, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | puma | Fixed | 5.6.5-4ubuntu2 | UBUNTU-CVE-2023-40175 |
| Ubuntu 22.04 | puma | Fix pending | 5.5.2-2ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-40175 |
| Ubuntu 20.04 | puma | Fix pending | 3.12.4-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-40175 |
| Ubuntu 18.04 | puma | Fix pending | ||
| Debian 14 | puma | Fixed | 5.6.7-1 | DEBIAN-CVE-2023-40175 |
| Debian 13 | puma | Fixed | 5.6.7-1 | DEBIAN-CVE-2023-40175 |
| Debian 12 | puma | Fixed | 5.6.5-3+deb12u1 | DEBIAN-CVE-2023-40175 |
| RubyGems library | puma | Fixed | 5.6.7 | GHSA-68xg-gqqm-vgj8 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- puma: affected: < 5.6.7, >= 6.0.0, < 6.3.1
References
- https://github.com/puma/puma/security/advisories/GHSA-68xg-gqqm-vgj8
- https://github.com/puma/puma/commit/690155e7d644b80eeef0a6094f9826ee41f1080a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.