Intel

AIKIDO-2024-10537

github.com/valyala/fasthttp is vulnerable to HTTP Request/Response Smuggling

HTTP Request/Response Smuggling Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 16, 2024

55

Medium Risk

This Affects:

GOgithub.com/valyala/fasthttp
0.1.0 - 1.57.0
Fixed in 1.58.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to request smuggling due to improper handling of chunked HTTP requests. Specifically, fasthttp allows newline characters (\n) between the chunk size and the CRLF within the chunk extension. This behavior can lead to request smuggling vulnerabilities when used with certain reverse proxies, potentially enabling attackers to bypass security controls or inject malicious requests. The issue has been mitigated in newer versions by disallowing newlines in the chunk extension.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/valyala/fasthttp is vulnerable to HTTP Request/Response Smuggling in versions 0.1.0 - 1.57.0.

How to fix this

Upgrade the github.com/valyala/fasthttp library to the patch version.