Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2025-69413

CVE-2025-69413: Gitea Auth Bypass Vulnerability

CVE-2025-69413 is an authentication bypass vulnerability in Gitea that exposes username enumeration through different API responses. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-69413 Overview

CVE-2025-69413 is an information disclosure vulnerability in Gitea, a self-hosted Git service, affecting versions prior to 1.25.2. The vulnerability exists in the /api/v1/user endpoint, which returns different responses for failed authentication attempts depending on whether a username exists in the system. This behavior allows attackers to enumerate valid usernames through the API, which can be leveraged for subsequent attacks such as credential stuffing or targeted phishing campaigns.

Critical Impact

Attackers can enumerate valid usernames in Gitea installations, enabling targeted authentication attacks and reconnaissance activities against organization repositories.

Affected Products

  • Gitea versions prior to 1.25.2
  • Self-hosted Gitea instances with exposed API endpoints
  • Gitea installations accessible over the network

Discovery Timeline

  • 2026-01-01 - CVE CVE-2025-69413 published to NVD
  • 2026-01-06 - Last updated in NVD database

Technical Details for CVE-2025-69413

Vulnerability Analysis

This vulnerability is classified as CWE-204 (Observable Response Discrepancy), where an application provides different responses to identical requests based on internal state that should not be externally observable. In the case of Gitea, the /api/v1/user endpoint exhibits distinct response patterns when authentication fails—one pattern for valid usernames with incorrect passwords, and another pattern for non-existent usernames.

The discrepancy allows unauthenticated attackers to probe the API systematically and build a list of valid user accounts. This information disclosure is particularly concerning for organizations using Gitea for private repositories, as it exposes the existence of user accounts that should remain confidential.

Root Cause

The root cause of this vulnerability lies in the authentication logic within the Gitea API handler. When processing authentication requests, the code path differs based on whether the username lookup succeeds before password validation occurs. This creates observable timing and response differences that leak information about account existence.

The fix implemented in Gitea Pull Request #36002 normalizes the error responses to ensure consistent behavior regardless of whether the username exists, preventing attackers from inferring valid accounts.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending HTTP requests to the /api/v1/user endpoint with different username values and analyzing the responses.

The attacker iterates through a list of potential usernames while monitoring response codes, response times, and message content. Differences in these responses reveal which usernames correspond to actual accounts in the Gitea instance. Once valid usernames are identified, attackers can conduct password spraying attacks, credential stuffing using credentials from data breaches, or craft targeted spear-phishing emails to compromise specific accounts.

Detection Methods for CVE-2025-69413

Indicators of Compromise

  • Unusual volume of failed authentication attempts to /api/v1/user from single IP addresses
  • Sequential or patterned username attempts indicating dictionary-based enumeration
  • Rapid succession of API requests with varying usernames but consistent malformed credentials
  • Authentication logs showing requests for non-existent users interspersed with real usernames

Detection Strategies

  • Monitor API access logs for high-frequency requests to the /api/v1/user endpoint from individual sources
  • Implement rate limiting detection to identify clients exceeding normal authentication attempt thresholds
  • Analyze authentication failure patterns for enumeration signatures such as alphabetical or dictionary-ordered attempts
  • Deploy web application firewall (WAF) rules to detect and block automated username harvesting patterns

Monitoring Recommendations

  • Enable detailed API request logging including response codes, timing, and client identifiers
  • Configure alerting thresholds for authentication failures per source IP within defined time windows
  • Integrate Gitea logs with SIEM solutions for correlation with other reconnaissance indicators
  • Establish baseline metrics for normal API authentication patterns to identify anomalies

How to Mitigate CVE-2025-69413

Immediate Actions Required

  • Upgrade Gitea to version 1.25.2 or later immediately
  • Review API access logs for signs of prior enumeration attempts
  • Implement rate limiting on authentication endpoints if not already configured
  • Consider requiring additional authentication factors for sensitive accounts

Patch Information

The vulnerability is addressed in Gitea version 1.25.2. The fix normalizes API responses for authentication failures to prevent username enumeration. Details of the patch are available in Gitea Pull Request #36002 and the official Gitea Release Announcement 1.25.2.

Organizations should upgrade to the patched version by downloading from the Gitea Release Tag v1.25.2.

Workarounds

  • Implement IP-based rate limiting on the /api/v1/user endpoint to slow enumeration attempts
  • Deploy a reverse proxy or WAF with rules to detect and block enumeration patterns
  • Restrict API access to trusted networks or require VPN for external access where feasible
  • Consider disabling public API access if not required for your deployment
bash
# Example: Rate limiting configuration for nginx reverse proxy
# Add to nginx server block for Gitea
location /api/v1/user {
    limit_req zone=auth_limit burst=5 nodelay;
    limit_req_status 429;
    proxy_pass http://gitea_backend;
}

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

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-204
  • Technical References
  • Gitea Release Announcement 1.25.2

  • Gitea Issue Discussion #35984

  • Gitea Release Tag v1.25.2
  • Vendor Resources
  • Gitea Pull Request #36002
  • Related CVEs
  • CVE-2026-20912: Gitea Auth Bypass Vulnerability

  • CVE-2026-20904: Gitea Auth Bypass Vulnerability

  • CVE-2026-20897: Gitea Auth Bypass Vulnerability

  • CVE-2026-20888: Gitea Auth Bypass Vulnerability
Default Legacy - Prefooter | 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