Vulnerability DatabaseGHSA-v2ch-c8v8-fgr7

GHSA-v2ch-c8v8-fgr7
vulnerability analysis and mitigation

Overview

A vulnerability in Versity Gateway (versitygw) prior to version 1.0.17 has been identified where sending AWS chunked data without a Content-Length HTTP header causes a panic condition in the server. The vulnerability was discovered in July 2025 and affects all versions of the software before the patch (GitHub Advisory).

Technical details

The vulnerability occurs in the HashReader function (csum-reader.go) due to a null pointer dereference when handling AWS chunked data transfers. The issue stems from the fasthttp library's behavior where it sets a -2 content length value internally when no Content-Length header is present, leading to a failure in setting up an io.Reader in the request context structure. This becomes problematic when AWS uses chunked encoding mode, particularly when the upload size is not known in advance (GitHub Advisory).

Impact

When exploited, this vulnerability causes the Versity Gateway server to panic and exit, effectively creating a denial of service condition. The issue is particularly concerning as it lacks structured exception handling and defensive coding practices, making it a potential target for DOS attacks (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in version 1.0.17 of Versity Gateway. The fix involves overriding the nil body reader with an empty reader to prevent panics in case of unexpected or malformed HTTP requests (Versity Commit).

Additional resources


SourceThis report was generated using AI

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

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