Loading advisory.
Loading advisory.
Gogs: Release tag option injection in release deletion
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.
Published 2026-03-05 18:38 UTC · Modified 2026-03-23 04:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| gogs.io/gogs | Go | < 0.14.2 all versions | 0.14.2 | go get gogs.io/gogs@v0.14.2 |
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.
internal/database/release.go
process.ExecDir(..., "git", "tag", "-d", rel.TagName)
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:
internal/database/release.go
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
An attacker can add a tag name that starts with a dash into the repository.
A user with permission to delete releases triggers it through the web UI or API.
Add end-of-options in release deletion:
git tag -d -- <tagName>
It is better to use the safe git-module deletion helper since it handles options properly.
All Git commands should be audited for user input, ensuring that the end-of-options separator is always used.
Option injection into git tag -d
Tag/release deletion can fail or behave unexpectedly
Operational denial of service in release cleanup workflows
Potential release metadata inconsistency
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.007 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.005 | v2026.06.15 |
| 2026-11-30 | 0.007 | 0.006 | v2026.06.15 |