blob: 69b631dfff2d186f01e2bec513f6fcf5a36e2933 [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-1027",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2022-40082",
"GHSA-c9qr-f6c8-rgxf"
],
"summary": "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.\n\nThis vulnerability does not affect non-Windows systems.",
"affected": [
{
"package": {
"name": "github.com/cloudwego/hertz",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/cloudwego/hertz/pkg/protocol",
"goos": [
"windows"
],
"symbols": [
"Cookie.SetPath",
"Cookie.SetPathBytes",
"NewRequest",
"ParseURI",
"Request.Host",
"Request.ParseURI",
"Request.Path",
"Request.QueryString",
"Request.SetHost",
"Request.SetQueryString",
"Request.URI",
"URI.Parse",
"URI.SetPath",
"URI.SetPathBytes",
"URI.Update",
"URI.UpdateBytes",
"normalizePath"
]
}
]
}
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/cloudwego/hertz/issues/228"
},
{
"type": "FIX",
"url": "https://github.com/cloudwego/hertz/pull/229"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-1027"
}
}