ADVISORIES

Go Vulnerability Database

GO-2022-1027

Path traversal in github.com/cloudwego/hertz

Details

Improper path sanitization on Windows permits path traversal attacks. Static file serving with the Static or StaticFS functions allows an attacker to access files from outside the filesystem root.

This vulnerability does not affect non-Windows systems.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/cloudwego/hertz
All versions before 0.3.1 (fixed in 0.3.1)

References