The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-20912

CVE-2026-20912: Gitea Auth Bypass Vulnerability

CVE-2026-20912 is an authentication bypass flaw in Gitea that allows unauthorized access to private repository attachments through public releases. This article covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-20912 Overview

CVE-2026-20912 is an Improper Access Control vulnerability affecting Gitea, the popular self-hosted Git service. The vulnerability exists because Gitea does not properly validate repository ownership when linking attachments to releases. An attachment uploaded to a private repository could potentially be linked to a release in a different public repository, making it accessible to unauthorized users.

This vulnerability represents a significant security concern for organizations using Gitea to host both public and private repositories, as confidential files intended to remain private could be inadvertently exposed through improper attachment linking.

Critical Impact

Unauthorized access to private repository attachments through improper validation of repository ownership when linking attachments to public releases, potentially exposing sensitive or confidential files.

Affected Products

  • Gitea versions prior to 1.25.4

Discovery Timeline

  • 2026-01-22 - CVE CVE-2026-20912 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-20912

Vulnerability Analysis

This vulnerability falls under CWE-284 (Improper Access Control), indicating a fundamental flaw in how Gitea enforces authorization boundaries between repositories. The core issue stems from insufficient validation during the attachment linking process for releases.

When a user uploads an attachment to a private repository, that attachment is stored with an identifier. The vulnerability allows an attacker with appropriate permissions to create releases in a public repository to reference and link attachments by their identifiers, even when those attachments belong to a different private repository. This effectively bypasses the intended access control boundaries that should separate content between repositories with different visibility settings.

The impact of this vulnerability is primarily information disclosure. Sensitive files such as proprietary code, configuration files containing credentials, or confidential documentation that were uploaded as attachments to private repositories could be exposed to unauthorized users if an attacker successfully links them to a public release.

Root Cause

The root cause of this vulnerability is a missing or insufficient authorization check in the attachment linking functionality for releases. When an attachment is being linked to a release, the application fails to verify that the attachment belongs to the same repository as the release being created or modified. This allows cross-repository attachment references, which breaks the intended isolation between private and public repository content.

The fix, implemented in Gitea Pull Request #36320 and Pull Request #36355, adds proper ownership validation to ensure that attachments can only be linked to releases within their originating repository.

Attack Vector

An attacker with the ability to create releases in a public Gitea repository could exploit this vulnerability by:

  1. Identifying or guessing attachment identifiers from a target private repository
  2. Creating a new release in a public repository they control
  3. Linking the private repository's attachment to the public release
  4. The attachment becomes accessible through the public repository's release page

This attack requires the attacker to have knowledge of valid attachment identifiers and the ability to create releases. The vulnerability could be particularly dangerous in multi-tenant Gitea instances where attackers might have legitimate accounts but should not have access to certain private repositories.

Detection Methods for CVE-2026-20912

Indicators of Compromise

  • Unexpected attachments appearing in release assets that were not uploaded directly to that repository
  • Audit logs showing release creation or modification events with attachment references to identifiers outside the repository's scope
  • User reports of private files becoming publicly accessible through unexpected channels

Detection Strategies

  • Review release audit logs for cross-repository attachment references
  • Monitor for unusual patterns of release creation followed by attachment linking operations
  • Implement alerts for releases containing attachments with identifiers not associated with the repository
  • Conduct periodic audits comparing attachment ownership against release associations

Monitoring Recommendations

  • Enable detailed logging for release and attachment operations in Gitea
  • Configure alerts for anomalous attachment linking behavior across repository boundaries
  • Review access logs for private attachment files being accessed through public release URLs
  • Implement file integrity monitoring for attachment storage directories

How to Mitigate CVE-2026-20912

Immediate Actions Required

  • Upgrade Gitea to version 1.25.4 or later immediately
  • Audit existing releases for any suspicious cross-repository attachment links
  • Review private repositories for any attachments that may have been exposed
  • Restrict release creation permissions to trusted users until patching is complete

Patch Information

Gitea has released version 1.25.4 which addresses this vulnerability. The fix ensures proper validation of repository ownership when linking attachments to releases, preventing cross-repository attachment exposure.

For detailed information about the security fix, refer to:

  • Gitea 1.25.4 Release Blog
  • Gitea Release v1.25.4
  • GitHub Security Advisory GHSA-vfmv-f93v-37mw

The fix was implemented through Pull Request #36320 and Pull Request #36355.

Workarounds

  • Limit release creation permissions to only highly trusted users until the patch can be applied
  • Audit and review existing releases for any potentially compromised attachments
  • Consider temporarily disabling attachment functionality for releases if immediate patching is not possible
  • Implement network-level access controls to restrict access to Gitea instances containing sensitive private repositories

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGitea

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-284
  • Technical References
  • Gitea 1.25.4 Release Blog

  • Gitea Pull Request #36320

  • Gitea Pull Request #36355

  • Gitea Release v1.25.4

  • GitHub Security Advisory GHSA-vfmv-f93v-37mw
  • Related CVEs
  • CVE-2026-20904: Gitea Auth Bypass Vulnerability

  • CVE-2026-20897: Gitea Auth Bypass Vulnerability

  • CVE-2026-20888: Gitea Auth Bypass Vulnerability

  • CVE-2026-20883: Gitea Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English