CVE-2026-20912CWE-284CWE-639

Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure

Critical · published January 22, 2026

CVSS v3.1
9.1
EPSS
0%
Percentile
38.5
In the wild
Unconfirmed
What it is

🚨 An uploader’s nightmare! Gitea fails to validate repository ownership, allowing attachments from private repositories to sneak into public releases — unauthorized access is just a click away! 🔥 Think of it like a secret recipe accidentally included in a cookbook sold at the local store. Your private notes end up in the hands of anyone flipping through the pages, potentially jeopardizing your culinary secrets! An attacker could exploit this vulnerability to expose sensitive files by linking them to a public release, leaving confidential information accessible to anyone online. This data leak could lead to serious implications, from reputational damage to legal issues. Don’t let your secrets become public knowledge!

Put simply

Think of it like a secret recipe accidentally included in a cookbook sold at the local store. Your private notes end up in the hands of anyone flipping through the pages, potentially jeopardizing your culinary secrets! This vulnerability arises because Gitea does not perform proper ownership checks when linking attachments to releases, meaning that files meant for private eyes could be seen by everyone.

What to do

An attacker could exploit this vulnerability to expose sensitive files by linking them to a public release, leaving confidential information accessible to anyone online. This data leak could lead to serious implications, from reputational damage to legal issues. Don’t let your secrets become public knowledge! To protect yourself, update Gitea to the latest version immediately to eliminate this flaw. Additionally, audit your existing releases to ensure no sensitive attachments are unintentionally exposed. Stay vigilant! You've got this! Follow these steps and you'll be back to securing your repositories in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00455 · 38.5th percentile
Weaknesses
CWE-284 · Improper Access Control; CWE-639 · Authorization Bypass Through User-Controlled Key
Published
2026-01-22T22:01Z
EPSS history
Timeline
  • 22 JAN 22:01Z
    Gitea: Cross-Repository Authorization Bypass via Release Attachment Linking Leads to Private Attachment Disclosure
    cvelistv5