All vulnerabilities

Servers and applications

GHSA-85m5-cfw6-3cx8

Windows-only incomplete fix: ".git " (trailing space) bypasses isRepositoryGitPath -> write into .git/config -> RCE

Severity
Low
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Sources
Project advisories (GitHub)

Description

An unmirrored sibling of the .git-path write protection that produced CVE-2025-8110. isRepositoryGitPath blocks the Windows trailing-DOT form ".git." but not the trailing- SPACE form ".git ". On Windows, Win32 strips trailing spaces from a path component exactly as it strips trailing dots, so an authenticated user with repo write/push can write into the real .git/config -> set core.sshCommand -> RCE. Windows hosts only.

isRepositoryGitPath lower-cases the path and rejects: ".git", ".git/", ".git\", and the Windows trailing-dot forms ".git.", ".git./", ".git.\" It does NOT reject the trailing-space forms ".git ", ".git /", ".git \". pathx.Clean preserves internal spaces, and hasSymlinkInPath does not fire (it is a literal directory, not a symlink), so a component ".git " passes both guards.

On Windows, the Win32 path layer strips trailing spaces from a path component (the same normalization that made ".git." dangerous and prompted the existing dot handling).

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

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.3

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