CVE-2026-125423
Gitea command execution through repository auto-initialization
- Severity
- high CVSS 8.8 (v3.1)
- Affects
- Gitea
- Weakness
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
- Published
- 15 November 2026 by Gitea
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.