CVE-2026-125423 Details
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.
A vulnerability in Gitea repositories created with the auto-initialize feature enabled allowed authenticated users to execute commands on the server as the Gitea system user. This issue arose because the repository accepted pushes before the initialization process was complete. An attacker could exploit this by pushing a crafted tree that included a symbolic link in the README file, which would overwrite a server-side Git hook. The vulnerability is present in Gitea versions through 28.3.0 and was patched in 28.4.0.
Users can upgrade to Gitea version 28.4.0 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 15, 2026CISA-ADP
Assessed Nov 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-28.4.0/ | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/pull/40376 | Gitea Limited | Issue TrackingSource CodeVendor |
| https://github.com/go-gitea/gitea/pull/40383 | Gitea Limited | Issue TrackingSource CodeVendor |
| https://github.com/go-gitea/gitea/releases/tag/v28.4.0 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946 | Gitea Limited | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | Gitea Limited |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| Gitea | <= 28.3.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 16, 2026 | CVE Modified | CISA-ADP |
| Nov 15, 2026 | New CVE Received | Gitea Limited |
Volerion