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-2025-64175

CVE-2025-64175: Gogs Auth Bypass Vulnerability

CVE-2025-64175 is an authentication bypass flaw in Gogs that allows attackers to bypass 2FA using any unused recovery code. This post explains its impact, affected versions, and mitigation steps.

Published: February 13, 2026

CVE-2025-64175 Overview

CVE-2025-64175 is an authentication bypass vulnerability in Gogs, an open source self-hosted Git service. The vulnerability exists in Gogs' two-factor authentication (2FA) recovery code validation mechanism, which fails to properly scope recovery codes by user. This critical flaw enables attackers who know a victim's username and password to bypass 2FA protections using any unused recovery code, including codes from their own account.

Critical Impact

Complete account takeover is possible, rendering 2FA protections ineffective across all Gogs environments where two-factor authentication is enabled.

Affected Products

  • Gogs version 0.13.3 and prior

Discovery Timeline

  • 2026-02-06 - CVE CVE-2025-64175 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2025-64175

Vulnerability Analysis

This vulnerability is classified as CWE-287 (Improper Authentication). The core issue lies in how Gogs validates 2FA recovery codes during the authentication process. When a user attempts to authenticate using a recovery code instead of their standard 2FA token, the system checks if the provided recovery code exists and is unused, but critically fails to verify that the recovery code belongs to the account being accessed.

This authentication bypass occurs because recovery codes are validated globally rather than being scoped to individual user accounts. An attacker with knowledge of valid credentials (username and password) can leverage this flaw to completely circumvent 2FA protections.

Root Cause

The root cause is improper input validation and inadequate authentication controls in the 2FA recovery code verification logic. The recovery code lookup query does not include the user identifier as a constraint, allowing any valid unused recovery code from any account to satisfy the verification check. This represents a fundamental failure to implement proper user-scoped validation for sensitive authentication mechanisms.

Attack Vector

The attack vector is network-based and requires the attacker to possess the victim's username and password. The exploitation sequence involves:

  1. The attacker registers their own Gogs account and obtains their 2FA recovery codes
  2. The attacker acquires the victim's username and password through credential theft, phishing, or data breach exposure
  3. When prompted for 2FA verification on the victim's account, the attacker provides one of their own unused recovery codes
  4. The vulnerable validation logic accepts the attacker's recovery code as valid for the victim's account
  5. The attacker gains full access to the victim's account, bypassing 2FA entirely

The attack requires low privilege (a valid Gogs account) and no user interaction from the victim. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2025-64175

Indicators of Compromise

  • Successful authentication events using 2FA recovery codes where the recovery code does not belong to the authenticating user
  • Unexpected login activity or session creation for accounts with 2FA enabled
  • Authentication audit logs showing recovery code usage from unfamiliar IP addresses or locations
  • Multiple accounts experiencing 2FA bypasses within a short timeframe

Detection Strategies

  • Implement correlation rules to detect when 2FA recovery codes are used and cross-reference them against the user account's assigned recovery codes
  • Monitor for anomalous login patterns where users successfully authenticate with 2FA recovery codes following failed TOTP attempts
  • Audit authentication logs for accounts where recovery code authentication occurs from new or suspicious IP addresses
  • Deploy behavioral analytics to identify accounts showing sudden changes in access patterns after 2FA bypass

Monitoring Recommendations

  • Enable verbose logging for all 2FA-related authentication events in Gogs
  • Implement real-time alerting for any recovery code authentication attempts
  • Monitor for bulk login attempts targeting multiple accounts with similar timing patterns
  • Review Gogs version information across your deployment to identify vulnerable instances running version 0.13.3 or prior

How to Mitigate CVE-2025-64175

Immediate Actions Required

  • Upgrade Gogs to version 0.13.4 or 0.14.0+dev immediately
  • Audit authentication logs for any suspicious recovery code usage
  • Force regeneration of 2FA recovery codes for all users after patching
  • Consider temporarily disabling 2FA recovery code authentication if immediate patching is not possible

Patch Information

The vulnerability has been addressed in Gogs versions 0.13.4 and 0.14.0+dev. Organizations should upgrade to these patched versions as soon as possible. For additional details, see the GitHub Security Advisory.

Workarounds

  • If immediate patching is not feasible, consider disabling the 2FA recovery code feature at the application level
  • Implement network-level access controls to restrict Gogs access to trusted IP ranges
  • Require additional verification for account access from new devices or locations
  • Deploy a web application firewall (WAF) to add an additional authentication layer in front of Gogs
bash
# Verify current Gogs version
gogs --version

# Backup current installation before upgrade
tar -czvf gogs-backup-$(date +%Y%m%d).tar.gz /path/to/gogs

# Upgrade to patched version (example using binary installation)
wget https://github.com/gogs/gogs/releases/download/v0.13.4/gogs_0.13.4_linux_amd64.tar.gz
tar -xzvf gogs_0.13.4_linux_amd64.tar.gz
systemctl restart gogs

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGogs

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-287
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25120: Gogs Authorization Bypass Vulnerability

  • CVE-2026-25229: Gogs Auth Bypass Vulnerability

  • CVE-2026-23632: Gogs Auth Bypass Vulnerability

  • CVE-2026-26196: Gogs Information Disclosure 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