
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-20736 is an improper access control vulnerability in Gitea that allows a user who previously uploaded an attachment to a repository to delete it after losing access, by routing the deletion request through a different repository they still have access to. It affects all Gitea versions prior to 1.25.4. The vulnerability was published on January 22, 2026, with a patch released on January 23, 2026. It carries a CVSS v3.1 base score of 7.5 (High) per Feedly's assessment, though the GitHub Advisory Database assigns a CVSS v4 score of 2.3 (Low) (GitHub Advisory, Gitea Release).
The root cause is CWE-284 (Improper Access Control): Gitea's attachment deletion handler in routers/web/repo/attachment.go fails to verify that the attachment being deleted belongs to the repository context of the incoming request. This means the server checks only whether the user has access to some repository, not whether the attachment is associated with the specific repository through which the deletion request is made. An attacker with a valid account and access to at least one repository can craft a deletion request referencing an attachment UUID from a repository they no longer have access to, and the server will process it without validating repository ownership of the attachment. The fix, contributed by maintainer lunny in PR #36320, adds a repository ownership check before processing attachment deletions (GitHub PR, GitHub Advisory).
Successful exploitation allows a revoked user to permanently delete attachments from repositories they no longer have access to, causing irreversible data loss and disrupting collaborative workflows. The impact is limited to integrity (deletion of files) with no confidentiality exposure, as the attacker cannot read or exfiltrate attachment content — only destroy it. In environments where attachments contain critical project artifacts, release binaries, or documentation, unauthorized deletion could significantly disrupt operations (GitHub Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation as of the time of publication. The EPSS score is approximately 0.016–0.017%, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to have a valid Gitea account with access to at least one repository, limiting the attack surface to authenticated users (GitHub Advisory, Feedly).
/[accessible-repo-owner]/[accessible-repo]/attachments/[attachment-uuid]), substituting the accessible repository's path but referencing the attachment UUID from the inaccessible repository.gitea/attachments/) that correspond to attachments no longer accessible via the web UI, with deletion timestamps correlating to suspicious user activity.Upgrade Gitea to version 1.25.4 or later, which includes the fix for this vulnerability (PR #36320, commit fbea2c6). No configuration-based workaround is available; the only remediation is applying the patch. Administrators should also audit attachment deletion logs for suspicious activity by former repository members and review repository access controls to ensure timely revocation (Gitea Release, Gitea Blog).
The Gitea project addressed the vulnerability as part of a broader security-focused release (v1.25.4), which included eight security fixes. Community reaction on GitHub was positive, with 40 users reacting to the release. The vulnerability was noted on social platforms including Bluesky and Mastodon/infosec.exchange shortly after disclosure. Coverage was primarily limited to vulnerability tracking databases and the Gitea community, with no major independent security research publications identified (Gitea Release, Gitea Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."