{"api_version":"1","generated_at":"2026-11-15T23:52:26+00:00","cve":"CVE-2026-125423","urls":{"html":"https://cve.report/CVE-2026-125423","api":"https://cve.report/api/cve/CVE-2026-125423.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-125423","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-125423"},"summary":{"title":"Gitea command execution through repository auto-initialization","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.","state":"PUBLISHED","assigner":"Gitea","published_at":"2026-11-15 21:16:54","updated_at":"2026-11-15 21:16:54"},"problem_types":["CWE-59","CWE-362","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')"],"metrics":[],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","name":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","name":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/pull/40383","name":"https://github.com/go-gitea/gitea/pull/40383","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/go-gitea/gitea/pull/40376","name":"https://github.com/go-gitea/gitea/pull/40376","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://blog.gitea.com/release-of-28.4.0/","name":"https://blog.gitea.com/release-of-28.4.0/","refsource":"88ee5874-cf24-4952-aea0-31affedb7ff2","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-125423","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125423","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Gitea","product":"Gitea","version":"affected 28.4.0 semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"https://github.com/grigorovichvlad","lang":"en"},{"source":"CNA","value":"https://github.com/bircni","lang":"en"},{"source":"CNA","value":"https://github.com/lunny","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","packageName":"gitea.dev","product":"Gitea","vendor":"Gitea","versions":[{"lessThan":"28.4.0","status":"affected","version":"0","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"https://github.com/grigorovichvlad"},{"lang":"en","type":"remediation developer","value":"https://github.com/bircni"},{"lang":"en","type":"remediation developer","value":"https://github.com/lunny"}],"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."}],"problemTypes":[{"descriptions":[{"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')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-15T21:10:23.428Z","orgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","shortName":"Gitea"},"references":[{"name":"GitHub Security Advisory GHSA-6m4f-m9vc-7946","tags":["vendor-advisory"],"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946"},{"name":"Fix: go-gitea/gitea pull request #40376","tags":["patch"],"url":"https://github.com/go-gitea/gitea/pull/40376"},{"name":"Fix backport to release/v28: go-gitea/gitea pull request #40383","tags":["patch"],"url":"https://github.com/go-gitea/gitea/pull/40383"},{"name":"Gitea 28.4.0 release announcement","tags":["release-notes"],"url":"https://blog.gitea.com/release-of-28.4.0/"},{"name":"go-gitea/gitea v28.4.0 release","tags":["release-notes"],"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0"}],"title":"Gitea command execution through repository auto-initialization"}},"cveMetadata":{"assignerOrgId":"88ee5874-cf24-4952-aea0-31affedb7ff2","assignerShortName":"Gitea","cveId":"CVE-2026-125423","datePublished":"2026-11-15T21:10:23.428Z","dateReserved":"2026-11-15T20:29:37.607Z","dateUpdated":"2026-11-15T21:10:23.428Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-15 21:16:54","lastModifiedDate":"2026-11-15 21:16:54","problem_types":["CWE-59","CWE-362","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')"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"125423","Ordinal":"1","Title":"Gitea command execution through repository auto-initialization","CVE":"CVE-2026-125423","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"125423","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Gitea command execution through repository auto-initialization"}]}}}