Add advisory for kawa Transfer-Encoding request smuggling (fixed in 0.7.0) - #3142
Open
UncleJ4ck wants to merge 2 commits into
Open
Add advisory for kawa Transfer-Encoding request smuggling (fixed in 0.7.0)#3142UncleJ4ck wants to merge 2 commits into
UncleJ4ck wants to merge 2 commits into
Conversation
Member
|
Please use the pull request template. In particular, we'll need approval from one of the maintainers. |
Author
|
Following up on the maintainer-approval point: I have now asked the kawa maintainers directly on their fix PR, CleverCloud/kawa#19 (comment CleverCloud/kawa#19 (comment)), for a word on whether an advisory is appropriate and to confirm the report. I will link their reply here as soon as there is one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Affected crate(s)
kawa(37,218 all-time downloads, 3,660 recent per crates.io). It is the HTTP/1parser used by the
sozureverse proxy (65,795 all-time downloads), so the affectedposition is a proxy front end.
Links to upstream issue(s) or PR(s)
follow-up fix(h1): exclude surrounding OWS from header field values CleverCloud/kawa#21
sozu2.2.0 depends onkawa ^0.7.1; its release notes describe the change as"HTTP/1
Transfer-Encodingsmuggling hardening"(the fix commit's own code comment states it closes this issue)
Reported privately to
security@clever.cloudon 2026-07-10, the contact published inClever Cloud's
.well-known/security.txt, with a full write-up and a self-containedreproduction. I received no reply, but the maintainers fixed and shipped it four days
later. There is currently no GHSA, no CVE, and no RustSec entry.
Severity
HTTP request smuggling (CWE-444) at a proxy front end.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N(7.5).kawaselected chunked framing with a suffix-only comparison on the rawTransfer-Encodingvalue, with no OWS trim and no requirement thatchunkedbe thefinal transfer-coding:
So
chunked\t,chunkedandchunked,identitydid not select chunked framing. With aContent-Lengthalso present,kawaframed byContent-Lengthand forwarded theTransfer-Encodingheader unchanged instead of rejecting the message (RFC 9112 6.3). Astricter downstream server frames the same message as chunked, which desynchronizes the
two and lets an attacker prepend bytes to the next request on a reused back end
connection, bypassing authentication or ACLs enforced only at the proxy.
Affected: all published versions before 0.7.0. Verified empirically on 0.6.8 via
sozu2.1.0 and 2.1.1. The unfixed handling is present by inspection in 0.6.5, 0.6.7 and 0.6.8;
0.6.3 and earlier use an exact-match compare that likewise neither normalizes nor rejects
an obfuscated value.
Checklist
RUSTSEC-0000-0000as the IDdatefield is set to the public disclosure date (2026-07-15, the kawa 0.7.0release that shipped the fix publicly)
On the last item: I reported privately to the documented security contact and got no
reply in 32 days, though the fix shipped. Following @djc's note, I am now asking the kawa
maintainers directly on their fix PR for approval, and will link their response here.
I could not run
rustsec-admin lintlocally (it requires rustc 1.96, this machine has1.94), so I validated by hand against the README template and RUSTSEC-2021-0078. The
"Lint advisories" CI job passes. Happy to adjust anything.