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.
Weaknesses
- CWE-59 — CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-362 — CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <28.4.0 [affected] |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946 (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/40376 (patch)
- https://github.com/go-gitea/gitea/pull/40383 (patch)
- https://blog.gitea.com/release-of-28.4.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.4.0 (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Nov 2026 08:07 UTC.