CVE-2026-26194: Gogs: Release tag option injection in release deletion

Published Mar 5, 2026
·
Updated

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

- internal/database/release.go 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:

- 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 1. An attacker can add a tag name that starts with a dash into the repository. 2. A user with permission to delete releases triggers it through the web UI or API.

Recommended Fix

1. Add end-of-options in release deletion: - git tag -d -- <tagName> 2. It is better to use the safe git-module deletion helper since it handles options properly. 3. All Git commands should be audited for user input, ensuring that the end-of-options separator is always used.

Impact - 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

Other sources

Gogs is an open source self-hosted Git service. Prior to version 0.14.2, 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. This issue has been patched in version 0.14.2.

MITRE

Affected Software

3 affected componentsFixes available
gogs/gogs<0.14.2
go/gogs.io/gogs<=0.14.1
0.14.2
Gogs Gogs<0.14.2

Event History

Mar 5, 2026
CVE Published
via MITRE·06:38 PM
Data Sourced
via MITRE·06:38 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·07:29 PM
Data Sourced
via GitHub·07:29 PM
DescriptionWeaknessAffected Software
May 28, 2026
News Published
via BleepingComputer·02:25 PM
News Published
via BleepingComputer·02:26 PM
Jun 8, 2026
News Published
via BleepingComputer·04:18 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-26194?

CVE-2026-26194 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2026-26194?

To fix CVE-2026-26194, update Gogs to version 0.14.3 or later.

3

Who is affected by CVE-2026-26194?

Gogs versions up to and including 0.14.2 are affected by CVE-2026-26194.

4

What type of vulnerability is CVE-2026-26194?

CVE-2026-26194 is an injection vulnerability related to the release deletion process in Gogs.

5

What can an attacker do with CVE-2026-26194?

An attacker could potentially exploit CVE-2026-26194 to interfere with the release deletion process by injecting options through user-controlled tag names.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203