{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-125423","assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","state":"PUBLISHED","assignerShortName":"Gitea","dateReserved":"2026-11-15T20:29:37.607Z","datePublished":"2026-11-15T21:10:23.428Z","dateUpdated":"2026-11-15T21:10:23.428Z"},"containers":{"cna":{"providerMetadata":{"orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","shortName":"Gitea","dateUpdated":"2026-11-15T21:10:23.428Z"},"title":"Gitea command execution through repository auto-initialization","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Gitea","product":"Gitea","packageName":"gitea.dev","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"28.4.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","name":"GitHub Security Advisory GHSA-6m4f-m9vc-7946","tags":["vendor-advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/40376","name":"Fix: go-gitea/gitea pull request #40376","tags":["patch"]},{"url":"https://github.com/go-gitea/gitea/pull/40383","name":"Fix backport to release/v28: go-gitea/gitea pull request #40383","tags":["patch"]},{"url":"https://blog.gitea.com/release-of-28.4.0/","name":"Gitea 28.4.0 release announcement","tags":["release-notes"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","name":"go-gitea/gitea v28.4.0 release","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')"},{"lang":"en","type":"CWE","cweId":"CWE-362","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"credits":[{"lang":"en","value":"https://github.com/grigorovichvlad","type":"reporter"},{"lang":"en","value":"https://github.com/bircni","type":"remediation developer"},{"lang":"en","value":"https://github.com/lunny","type":"remediation developer"}]}}}