CVE-2026-23633
published 2026-02-06CVE-2026-23633: Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, there is an arbitrary file read/write via path traversal in Git hook editing. This…
PriorityP341medium6.5CVSS 3.1
AVNACLPRHUINSUCHIHAN
EPSS
0.46%
36.3th percentile
Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, there is an arbitrary file read/write via path traversal in Git hook editing. This issue has been patched in versions 0.13.4 and 0.14.0+dev.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gogs.io | gogs | >= 0 < 0.13.4 | 0.13.4 |
| gogs | gogs | < 0.14.0+dev | 0.14.0+dev |
| gogs | gogs | < 0.13.4 | 0.13.4 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Gogs has arbitrary file read/write via Path Traversal in Git hook editing in gogs.io/gogs
osv·2026-02-17
CVE-2026-23633 Gogs has arbitrary file read/write via Path Traversal in Git hook editing in gogs.io/gogs
Gogs has arbitrary file read/write via Path Traversal in Git hook editing in gogs.io/gogs
Gogs has arbitrary file read/write via Path Traversal in Git hook editing in gogs.io/gogs.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: gogs.io/gogs before v0.13.4.
GHSA
Gogs has arbitrary file read/write via Path Traversal in Git hook editing
ghsa·2026-02-06
CVE-2026-23633 [MEDIUM] CWE-22 Gogs has arbitrary file read/write via Path Traversal in Git hook editing
Gogs has arbitrary file read/write via Path Traversal in Git hook editing
## Vulnerability Description
In the endpoint:
```
/username/reponame/settings/hooks/git/:name
```
the `:name` parameter:
* Is URL-decoded by **macaron routing**, allowing decoded slashes (`/`)
* Is then passed directly to:
```go
git.Repository.Hook("custom_hooks", name)
```
which internally resolves the path as:
```go
filepath.Join(repoPath, "custom_hooks", name)
```
Because no path sanitization is applied, supplying `../` sequences allows access to **arbitrary paths outside the repository**.
### As a Result:
* **GET:** Arbitrary file contents are displayed in the hook edit page textarea (**Local File Inclusion**).
* **POST:** Existing files can be overwritten with attacker-controlled content (**Arbitrary
OSV
Gogs has arbitrary file read/write via Path Traversal in Git hook editing
osv·2026-02-06
CVE-2026-23633 [MEDIUM] Gogs has arbitrary file read/write via Path Traversal in Git hook editing
Gogs has arbitrary file read/write via Path Traversal in Git hook editing
## Vulnerability Description
In the endpoint:
```
/username/reponame/settings/hooks/git/:name
```
the `:name` parameter:
* Is URL-decoded by **macaron routing**, allowing decoded slashes (`/`)
* Is then passed directly to:
```go
git.Repository.Hook("custom_hooks", name)
```
which internally resolves the path as:
```go
filepath.Join(repoPath, "custom_hooks", name)
```
Because no path sanitization is applied, supplying `../` sequences allows access to **arbitrary paths outside the repository**.
### As a Result:
* **GET:** Arbitrary file contents are displayed in the hook edit page textarea (**Local File Inclusion**).
* **POST:** Existing files can be overwritten with attacker-controlled content (**Arbitrary
No detection rules found.
No public exploits indexed.
2026-02-06
Published