All vulnerabilities

Servers and applications

CVE-2026-26194

Release tag option injection in release deletion

Severity
High 8.8
Published
5 Mar 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.14.2
Exploit chance
0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 18 Nov 2026
Weakness
Argument injection (CWE-88)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-v9vm-r24h-6rqm
Sources
NVD, Project advisories (GitHub)

Description

there's 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, this lets git options get injected and mess with the process

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

Why prior mitigation is incomplete, there's path sanitization in place during creation

  • internal/database/release.go r.TagName = strings.TrimLeft(r.TagName, "-")

but it only covers one creation path and doesn’t reliably protect tag deletions, like tags added through git push or ref updates

  • 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
From gogs/gogs's security advisory.

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.14.2
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.1

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-26194
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-26194
  • GitHub Advisory Database https://github.com/advisories/GHSA-v9vm-r24h-6rqm
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-v9vm-r24h-6rqm