# CVE-2026-125423: Gitea command execution through repository auto-initialization

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-15T21:10:23.428Z
- Modified: 2026-11-16T23:17:14.770Z
- Weaknesses: CWE-59, CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Gitea

## 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.

(As written by CVE List.)

## Affected

- gitea.dev: before 28.4.0

## 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)

## Sources

- CVE List: [CVE-2026-125423](https://www.cve.org/CVERecord?id=CVE-2026-125423), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-125423](https://nvd.nist.gov/vuln/detail/CVE-2026-125423), Public domain, modified 2026-11-16

---

Page: https://cve.day/CVE-2026-125423 · Whole record: https://cve.day/CVE-2026-125423.json · Rebuilt by cve.day 2026-11-25T22:59:50.836Z
