CVE-2026-125423
Gitea command execution through repository auto-initialization
CVSS Score
8.8
EPSS Score
0.1%
EPSS Percentile
3th
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.
| CWE | CWE-59 CWE-362 |
| Vendor | gitea |
| Product | gitea |
| Published | Nov 15, 2026 |
| Last Updated | Nov 16, 2026 |
Stay Ahead of the Next One
Get instant alerts for gitea gitea
Be the first to know when new high vulnerabilities affecting gitea gitea are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Gitea / Gitea
0 < 28.4.0
References
github.com: https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946 github.com: https://github.com/go-gitea/gitea/pull/40376 github.com: https://github.com/go-gitea/gitea/pull/40383 blog.gitea.com: https://blog.gitea.com/release-of-28.4.0/ github.com: https://github.com/go-gitea/gitea/releases/tag/v28.4.0
Credits
๐ https://github.com/grigorovichvlad https://github.com/bircni https://github.com/lunny