Vulnerability DatabaseGHSA-4q2p-cw9r-mwxm

GHSA-4q2p-cw9r-mwxm: 
Rust vulnerability analysis and mitigation

Summary

When dynamic compression is enabled (the default), responses without a body such as 304 Not Modified, 412, 416 and the trailing-slash 308 redirect are passed through the compressor. They receive a Content-Encoding header that does not describe any content, and over HTTP/2 the 304 additionally carries a small compressed empty body.

Details

The compression step skips responses based on the method, Content-Range, the content type and a minimum Content-Length, but never on the status code. A 304 has neither a content type nor a length, so it is encoded. RFC 9110 states that a 304 cannot contain content, and RFC 9111 instructs caches to update the stored response's header fields from a 304. A cache that stored the identity representation and then receives Content-Encoding: gzip on the revalidation may relabel its stored bytes as gzip.

PoC

  • Run SWS with default settings and a text file larger than 200 bytes.
  • Request the file with If-None-Match: <its ETag> and Accept-Encoding: gzip.
  • On v2, which sends no ETag, use If-Modified-Since: <its Last-Modified> instead.
  • The 304 response carries Content-Encoding: gzip; over HTTP/2 the stream also carries a 20-byte DATA frame and clients such as curl report a protocol error.

Impact

A client can make a shared cache (CDN or reverse-proxy cache) revalidate an entry in a way that leaves it mislabelled, so other users receive identity bytes announced as gzip and the resource fails to load until the entry expires. Whether a given cache applies the header update varies by product. Over HTTP/2 every conditional revalidation with compression enabled fails outright.

Mitigation until fixed

  • Disable dynamic compression (--compression=false) when SWS sits behind a shared cache, or have the proxy drop Content-Encoding from 304 responses.

Fix

  • Skip the compression step for 1xx, 204, 304 and any response without a body; never add Content-Encoding to a bodiless response.
  • The same applies to pre-compressed variants (--compression-static).
  • Fixed in v3.0.0-beta.3 and v2.44.3.

Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-gfq6-89vx-q4j7CRITICAL9.3
  • Rust logoRust
  • zip
NoNoNov 16, 2026
GHSA-cm63-4mhh-887hCRITICAL9.2
  • Rust logoRust
  • zip
NoYesNov 16, 2026
GHSA-4963-ggxm-v64xMEDIUM6.9
  • Rust logoRust
  • zip
NoYesNov 16, 2026
GHSA-qg9m-hhhf-rqjcHIGHN/A
  • Rust logoRust
  • reed-compiler
NoYesNov 16, 2026
GHSA-4q2p-cw9r-mwxmLOWN/A
  • Rust logoRust
  • static-web-server
NoYesNov 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management