Уязвимость обхода пути (path traversal) в функции "filepath.Clean" на Windows
Описание
Существует уязвимость обхода пути в функции filepath.Clean на Windows. На этой платформе функция filepath.Clean способна преобразовать некорректный путь, такой как "a/../c:/b", в корректный путь "c:\b". Такое преобразование относительного (хоть и некорректного) пути в абсолютный путь может позволить злоумышленнику осуществить атаку обхода пути. После исправления функция filepath.Clean преобразует данный путь в относительный (хотя все еще некорректный) путь ".\c:\b".
Тип уязвимости
Обход пути (path traversal)
Ссылки
- Issue Tracking
- Issue Tracking
- Mailing ListVendor Advisory
- Vendor Advisory
- Issue Tracking
- Issue Tracking
- Mailing ListVendor Advisory
- Vendor Advisory
Уязвимые конфигурации
Одновременно
Одно из
EPSS
7.5 High
CVSS3
Дефекты
Связанные уязвимости
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
A path traversal vulnerability exists in filepath.Clean on Windows. On ...
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
EPSS
7.5 High
CVSS3