CVE-2023-40175
Inconsistent Interpretation of HTTP Requests in puma
Reported by github_m · Published August 18, 2023
gitlab-puma is fixed in 6.3.1 and 5.6.7 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gitlab-puma | RubyGems | 6.3.1, 5.6.7 |
| puma | RubyGems | 6.3.1, 5.6.7 |
| puma | puma | 6.3.1, 5.6.7 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| puma | puma | < 5.6.7, >= 6.0.0, < 6.3.1 |
| RubyGems | gitlab-puma | 0, 6.0.0 |
| puma | puma | 0, 6.0.0 |
| puma | puma | 0, 6.0.0 |
| RubyGems | puma | 0, 6.0.0 |
Timeline
- Aug 18, 2023 CVE Published
- Aug 19, 2023 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Feb 7, 2026 Security Advisory
- Aug 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-40175
vulnetix vdb fixes CVE-2023-40175
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-40175/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/puma/puma/security/advisories/GHSA-68xg-gqqm-vgj8 x_refsource_CONFIRM
- https://github.com/puma/puma/commit/690155e7d644b80eeef0a6094f9826ee41f1080a x_refsource_MISC
- https://github.com/puma/puma/commit/ed0f2f94b56982c687452504b95d5f1fbbe3eed1 patch
- https://github.com/puma/puma/releases/tag/v5.6.7 url
- https://github.com/puma/puma/releases/tag/v6.3.1 url
- https://github.com/advisories/GHSA-68xg-gqqm-vgj8 advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-40175 advisory