CVE-2026-125423
8.8high
Gitea command execution through repository auto-initialization
- Severity
- 8.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.44% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gitea.dev | before 28.4.0 | CVE List |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-125423 changed 2026-11-16 | CVE Terms of Use |
| NVD | CVE-2026-125423 changed 2026-11-16 | Public domain |