All vulnerabilities

Servers and applications

CVE-2026-84362

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gogs.io/gogs

Severity
Medium 4.3
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
0.14.4
Weakness
Argument injection (CWE-88)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Also known as
GHSA-mxrh-2rxr-6mqc
Sources
Project advisories (GitHub)

Description

Multiple Gogs API endpoints pass user-controlled input to git rev-parse without the --end-of-options separator. An authenticated user can inject git CLI options like --absolute-git-dir through parameters meant for commit SHAs or branch references, leaking the server's full filesystem path to the repository and other internal configuration details to the server-side error logs.

The RevParse function in gogs/git-module (v1.8.8) at repo.go:590-607 constructs a git command without --end-of-options:

Other functions in the same library correctly use --end-of-options (e.g., DeleteBranch at repo_reference.go:284, MergeBase at repo_pull.go:36, ShowRefVerify at repo_reference.go:59), showing the developers are aware of this pattern but missed it in RevParse.

RevParse is called by CatFileCommit (repo_commit.go:98), which is reachable from these API endpoints:

From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version before 0.14.4

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,097,312Docker Hub, 22 Nov 2026
GitHub stars
47,981GitHub, 22 Nov 2026
Forks
5,081GitHub, 22 Nov 2026
Latest release
v0.14.4GitHub, 22 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