Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.8
CVE-2026-125423: Gitea lets attacker run code when creating a repository
CVE-2026-125423 · published 6 days ago
Summary
When a new repository is set to auto‑initialize, Gitea accepted push actions before the setup finished. An attacker could exploit this brief window to replace a server script and execute commands as the Gitea system user. Update to the latest Gitea release, which now builds the first commit only after initialization completes, and restrict who can create repositories.
What to do
- Update gitea gitea to version 28.4.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 28.4.0 |
Original advisory text
Gitea command execution through repository auto-initialization
A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built in a checkout of whatever the repository already contained. A user who is allowed to create repositories could push a crafted tree during that window so that writing the README followed a symbolic link and overwrote a server-side git hook, which runs commands as the Gitea system user. The initial commit is now built in a freshly initialized directory, and a new repository only becomes ready, and accepts pushes, once its initialization is complete.
References
- https://github.com/go-gitea/gitea/pull/40376 Patch
- https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946 Vendor Advisory
- https://github.com/go-gitea/gitea/pull/40383 Patch
- https://blog.gitea.com/release-of-28.4.0/ Vendor Advisory
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-1254... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-125423 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
8.8
High
Type
CWE-59Link Following
CWE-362Race Condition
Timeline
Published15 Nov 2026
Updated22 Nov 2026
First seen15 Nov 2026
Sources
CVE-2026-125423 · NVD
CVE-2026-125423 · MITRE
CVE-2026-125423 · OSV
GHSA-6m4f-m9vc-7946 · GHSA
Track software like this
Free during beta