CVE-2026-27598: Path Traversal Via Unvalidated Abs

A function parameter is directly passed to `filepath.Abs` and returned without any subsequent validation. If the parameter is user-controlled, this can enable path traversal, allowing attackers to access or modify files anywhere on the backend filesystem by supplying absolute paths or path traversal sequences. Either use `filepath.Base()` to extract just the

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-27598-path-traversal-via-unvalidated-abs --engine opengrep

Description

A function parameter is directly passed to `filepath.Abs` and returned without any subsequent validation. If the parameter is user-controlled, this can enable path traversal, allowing attackers to access or modify files anywhere on the backend filesystem by supplying absolute paths or path traversal sequences. Either use `filepath.Base()` to extract just the