{"schemaVersion":4,"id":"CVE-2026-125423","aliases":[],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-11-15T21:10:23.428Z","modified":"2026-11-16T22:48:21.679Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00438,"percentile":0.39766,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-16T00:00:00.000Z","score":0.00129,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00438,"percentile":0.39766}],"last30":[{"date":"2026-11-16T00:00:00.000Z","score":0.00129,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00468,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00438,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00438,"percentile":0.39766}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"},{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"gitea","product":"gitea","name":"Gitea","label":"gitea","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 28.4.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"28.4.0","endInclusive":false}}],"versionsText":"< 28.4.0","eol":null,"hubHref":"/vendor/gitea/gitea"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","label":"github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/40376","label":"github.com/go-gitea/gitea/pull/40376","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/go-gitea/gitea/pull/40383","label":"github.com/go-gitea/gitea/pull/40383","hostname":"github.com","tags":["Patch"]},{"url":"https://blog.gitea.com/release-of-28.4.0/","label":"blog.gitea.com/release-of-28.4.0/","hostname":"blog.gitea.com","tags":["Release Notes"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.4.0","label":"github.com/go-gitea/gitea/releases/tag/v28.4.0","hostname":"github.com","tags":["Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-15T21:10:23.428Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-16T22:48:21.679Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,88],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00438,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-16T22:48:21.679Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-16T22:48:21.679Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-16T22:48:09.493Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00438,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T14:05:26.172Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T14:05:26.762Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T14:01:06.338Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T14:05:24.254Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T14:03:52.423Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T14:33:12.964Z","stale":false,"partial":false}}