CVE-2026-125423 Gitea command execution through repository auto-initialization
HighCVSS 8.8
EPSS 0.47%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | < 28.4.0 | 28.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | < 28.4.0 | 28.4.0 |
References
- GitHub Security Advisory GHSA-6m4f-m9vc-7946 vendor-advisory
- Fix: go-gitea/gitea pull request #40376 patch
- Fix backport to release/v28: go-gitea/gitea pull request #40383 patch
- Gitea 28.4.0 release announcement release-notes
- go-gitea/gitea v28.4.0 release release-notes
- ENISA EUVD EUVD-2026-126115 third-party-advisory