CVE-2026-20736CWE-284

Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check

High · published January 22, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
36.6
In the wild
Unconfirmed
What it is

⚡ A crafty user could delete attachments from any repository just by making a request from one they can access! 🔥 Think of it like someone returning a library book they don't own—if they sneak in through a side door and hand it to the librarian, they could pull any title from the shelves without permission! 📚 This oversight could lead to significant data loss, as a user could erase important files even after losing access to the original repository. Imagine valuable project assets disappearing overnight without a trace, leaving teams scrambling to recover or recreate lost work! 😱

Put simply

Think of it like someone returning a library book they don't own—if they sneak in through a side door and hand it to the librarian, they could pull any title from the shelves without permission! 📚 Gitea fails to verify the context of the repository when deleting attachments, allowing users to exploit access controls and delete files they shouldn't be able to touch.

What to do

This oversight could lead to significant data loss, as a user could erase important files even after losing access to the original repository. Imagine valuable project assets disappearing overnight without a trace, leaving teams scrambling to recover or recreate lost work! 😱 Update Gitea to the latest version to ensure proper repository context verification is in place. Review user permissions and attachment management policies to tighten security and prevent unauthorized access. 🛡️ You’ve got this! Follow these steps and you’ll keep your repositories safe and secure! 🚀

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00433 · 36.6th percentile
Weakness
CWE-284 · Improper Access Control
Published
2026-01-22T22:01Z
EPSS history
Timeline
  • 22 JAN 22:01Z
    Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
    cvelistv5