CVE-2025-7452: Gin Path Traversal

Untrusted user input from a Gin Context parameter is used to construct a file path without validation. This can lead to path traversal vulnerabilities. Use `filepath.Base` to sanitize the input before constructing paths.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Goβ
greprules fetch cve-2025-7452-gin-path-traversal --engine opengrep

Description

Untrusted user input from a Gin Context parameter is used to construct a file path without validation. This can lead to path traversal vulnerabilities. Use `filepath.Base` to sanitize the input before constructing paths.