{"schemaVersion":4,"id":"CVE-2026-123065","aliases":[],"status":"published","duplicateOf":null,"title":"Gitea deletion of arbitrary attachment files through release edit","description":"When a release was edited, the files of the attachments to remove were deleted by the identifiers submitted in the form rather than by the attachments verified to belong to the release. A user with write access to the releases of any repository, including their own, could submit a crafted identifier that resolves to the stored file of another attachment and delete it, provided they know that attachment's UUID. The attachment record stayed, so downloads of the affected issue, comment or release file failed. Release edits now only delete the files of attachments that belong to the release.","dates":{"published":"2026-11-15T21:14:01.669Z","modified":"2026-11-17T15:14:33.985Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00328,"percentile":0.27896,"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.00241,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00241,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00328,"percentile":0.27896}],"last30":[{"date":"2026-11-16T00:00:00.000Z","score":0.00241,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00241,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00278,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00357,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00328,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00328,"percentile":0.27896}]},"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key","description":"The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/639.html"}],"affected":[{"vendor":"gitea","product":"gitea","name":"Gitea","label":"gitea","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.15.0, < 28.4.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.15.0","startInclusive":true,"end":"28.4.0","endInclusive":false}}],"versionsText":"≥ 1.15.0, < 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-4p89-xcq8-xfhm","label":"github.com/go-gitea/gitea/security/advisories/GHSA-4p89-xcq8-xfhm","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/40120","label":"github.com/go-gitea/gitea/pull/40120","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/go-gitea/gitea/pull/40268","label":"github.com/go-gitea/gitea/pull/40268","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:14:01.669Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T15:14:33.985Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.7, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,57],"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.00328,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T15:14:33.985Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T15:14:33.985Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T15:13:59.197Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00328,"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:32:59.147Z","stale":false,"partial":false}}