Directory Traversal Affecting gitea package, versions <1.27.1-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.35% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-WOLFILATEST-GITEA-18597726
  • published8 Aug 2026
  • disclosed7 Aug 2026

Introduced: 7 Aug 2026

NewCVE-2026-71557  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Wolfi gitea to version 1.27.1-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gitea package and not the gitea package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, reference names are not sanitized before being used to construct on-disk paths under the reference storage directory, so a maliciously crafted reference name (for example containing directory-traversal sequences) can cause go-git to write files outside the intended reference storage directory. Versions 5.19.2 and 6.0.0-alpha.5 fix the issue.