Vulnerabilities / CVE-2023-40175

critical

CVE-2023-40175

rubygem-puma: HTTP request smuggling when parsing chunked transfer encoding bodies and zero-length content-length headers

Published Modified CWE 444
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ruby Advisory DB (medium), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemspuma5.6.7, 6.3.1
debian 10pumano fix listed
debian 11pumano fix listed
debian 12puma5.6.5-3+deb12u1
debian 13puma5.6.7-1
debian 14puma5.6.7-1
echopuma5.6.5-3+deb12u1
rapidfort ubuntu 20.04puma0:5.6.5-3ubuntu1.1
rapidfort ubuntu 22.04puma0:5.6.5-3ubuntu1.1
rapidfort ubuntu 24.04puma0:5.6.5-3ubuntu1.1
Red Hatrubygem-puma, rubygem-puma-doc, tfm-rubygem-pumano fix listed
rubygems::Ruby Advisory Databasepuma~> 5.6.7, >= 6.3.1
Show all 24 entries from 22 sources
SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemspuma5.6.7, 6.3.1
debian 10pumano fix listed
debian 11pumano fix listed
debian 12puma5.6.5-3+deb12u1
debian 13puma5.6.7-1
debian 14puma5.6.7-1
echopuma5.6.5-3+deb12u1
rapidfort ubuntu 20.04puma0:5.6.5-3ubuntu1.1
rapidfort ubuntu 22.04puma0:5.6.5-3ubuntu1.1
rapidfort ubuntu 24.04puma0:5.6.5-3ubuntu1.1
Red Hatrubygem-pumano fix listed
Red Hatrubygem-puma-docno fix listed
Red Hattfm-rubygem-pumano fix listed
rubygems::Ruby Advisory Databasepuma~> 5.6.7, >= 6.3.1
ubuntu 20.04-ESMpuma3.12.4-1ubuntu2+esm1
ubuntu 22.04pumano fix listed
ubuntu 23.04puma5.6.5-3ubuntu1.1
ubuntu 23.10puma5.6.5-4ubuntu2
ubuntu 24.04puma5.6.5-4ubuntu2
ubuntu 24.10puma5.6.5-4ubuntu2
ubuntu 25.04puma5.6.5-4ubuntu2
ubuntu 25.10puma5.6.5-4ubuntu2
ubuntu 26.04puma5.6.5-4ubuntu2
ubuntu 26.10puma5.6.5-4ubuntu2

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.