gogs.io/gogs
Affected
- introduced
0, fixed0.14.2(semver)
Fixed versions
0.14.2
Fix
- Fixed version
0.14.2go get gogs.io/[email protected]
Advisory
Also known as: CVE-2026-26194, GO-2026-4617
Gogs: Release tag option injection in release deletion
Summary
There is a security issue in Gogs where deleting a release can fail if a user-controlled tag name is passed to Git without the right separator, allowing Git option injection and therefore interfering with the process.
Affected Component
process.ExecDir(..., "git", "tag", "-d", rel.TagName)Details
rel.TagName is used as a CLI argument to git tag -d without -- or --end-of-options.
If the tag name begins with -, Git parses it as a flag.
The prior mitigation is incomplete. There is path sanitization in place during creation:
r.TagName = strings.TrimLeft(r.TagName, "-") But it only covers one creation path and does not reliably protect tag deletions, such as tags added through git push or ref updates.
Exploit Conditions
Recommended Fix
git tag -d -- <tagName>Impact
git tag -dHigh Basis: The source's own band: HIGH
0, fixed 0.14.2 (semver)0.14.2
0.14.2go get gogs.io/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0