{"id":"CVE-2026-125423","aliases":["CVE-2026-125423"],"related":[],"kind":"vulnerability","state":"published","title":"Gitea command execution through repository auto-initialization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-15T21:10:23.428Z","modified":"2026-11-16T23:17:14.770Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-59","CWE-362"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"28.4.0","status":"affected"}],"vendor":"Gitea","product":"Gitea","package":"gitea.dev","source":"cvelist"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/40376","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/40383","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://blog.gitea.com/release-of-28.4.0/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["https://github.com/grigorovichvlad","https://github.com/bircni","https://github.com/lunny"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-16T22:48:09.493Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-125423","url":"https://www.cve.org/CVERecord?id=CVE-2026-125423","licence":"CVE Terms of Use","modified":"2026-11-16T22:48:21.679Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-125423","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125423","licence":"Public domain","modified":"2026-11-16T23:17:14.770Z"}],"updatedAt":"2026-11-25T22:59:50.836Z","epss":{"score":0.00438,"percentile":0.39777,"date":"2026-12-01T12:00:22.000Z"}}