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-23632

CVE-2026-23632: Gogs Auth Bypass Vulnerability

CVE-2026-23632 is an authentication bypass flaw in Gogs that allows read-only tokens to modify repository contents. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: February 13, 2026

CVE-2026-23632 Overview

CVE-2026-23632 is an Authorization Bypass vulnerability affecting Gogs, an open source self-hosted Git service. The vulnerability exists in version 0.13.3 and prior, where the endpoint PUT /repos/:owner/:repo/contents/* fails to properly enforce write permissions, allowing users with read-only access tokens to modify repository contents.

Critical Impact

Attackers with read-only repository access can bypass authorization controls to create commits and push changes to repositories, potentially introducing malicious code or corrupting project integrity.

Affected Products

  • Gogs version 0.13.3 and prior versions
  • Self-hosted Git service installations using vulnerable Gogs versions
  • Deployments relying on read-only tokens for repository access control

Discovery Timeline

  • February 6, 2026 - CVE CVE-2026-23632 published to NVD
  • February 6, 2026 - Last updated in NVD database

Technical Details for CVE-2026-23632

Vulnerability Analysis

This vulnerability is classified under CWE-862 (Missing Authorization), a weakness category that occurs when a software component fails to perform authorization checks for a critical resource or operation. In Gogs, the flawed implementation allows authenticated users to bypass intended access restrictions and perform privileged operations beyond their granted permissions.

The vulnerability enables read-only token holders to write to repositories they should only be able to read. This represents a significant breach of the principle of least privilege and undermines the entire permission model that organizations rely on to protect their source code repositories.

Root Cause

The root cause of CVE-2026-23632 lies in the repoAssignment() function's permission validation logic for the contents API endpoint. The PUT /repos/:owner/:repo/contents/* endpoint incorrectly accepts requests authenticated with read-only permissions instead of requiring write permissions.

When processing the PUT request, the permission check in repoAssignment() passes with read-level access. The subsequent call to PutContents() then invokes UpdateRepoFile(), which creates commits and executes git push operations without any secondary authorization verification.

Attack Vector

The attack vector for this vulnerability operates over the network and requires low privileges (a valid read-only access token). An attacker who has obtained a read-only repository token—whether through legitimate means or credential theft—can exploit this vulnerability to:

  1. Send a crafted PUT request to the vulnerable endpoint
  2. Bypass the permission check with their read-only token
  3. Execute UpdateRepoFile() to create unauthorized commits
  4. Push malicious changes to the repository

The vulnerability can be exploited to modify files in the targeted repository, potentially introducing backdoors, malicious dependencies, or corrupted code. Since the attack uses a legitimate token, the malicious commits may be attributed to the token owner, complicating forensic investigation.

For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-23632

Indicators of Compromise

  • Unexpected commits or file modifications in repositories by users with read-only permissions
  • API access logs showing PUT requests to /repos/:owner/:repo/contents/* endpoints from read-only tokens
  • Git push operations originating from accounts that should not have write access
  • Unauthorized modifications to sensitive files like CI/CD configurations or build scripts

Detection Strategies

  • Monitor Gogs API logs for PUT requests to the contents endpoint and correlate with token permission levels
  • Implement Git hook scripts to validate committer permissions before accepting pushes
  • Deploy file integrity monitoring on critical repository files
  • Review access token usage patterns for anomalous write operations from read-only tokens

Monitoring Recommendations

  • Enable detailed API request logging in Gogs to capture endpoint access and authentication details
  • Configure alerting for repository modifications outside of normal development workflows
  • Audit all active access tokens and verify their permission levels match intended use cases
  • Implement real-time monitoring of Git push events with permission validation

How to Mitigate CVE-2026-23632

Immediate Actions Required

  • Upgrade Gogs to version 0.13.4 or 0.14.0+dev immediately
  • Audit all repository modifications made since deploying vulnerable Gogs versions
  • Revoke and regenerate all access tokens to ensure permission levels are correctly enforced
  • Review Git commit history for suspicious or unauthorized changes

Patch Information

The Gogs development team has addressed this vulnerability in versions 0.13.4 and 0.14.0+dev. The patch corrects the permission validation in repoAssignment() to properly require write permissions for the PUT /repos/:owner/:repo/contents/* endpoint.

Organizations should upgrade to the patched versions as soon as possible. For additional details, consult the GitHub Security Advisory.

Workarounds

  • Restrict network access to the Gogs API to trusted IP addresses until patching is complete
  • Disable or remove read-only access tokens temporarily if write access is not required
  • Implement additional authorization controls at the reverse proxy or API gateway level
  • Monitor and alert on all PUT requests to the contents API endpoint
bash
# Configuration example
# Restrict access to Gogs API via nginx reverse proxy
# Add to nginx server block for Gogs

location ~ ^/api/v1/repos/.*/contents {
    # Temporarily block PUT requests to the vulnerable endpoint
    if ($request_method = PUT) {
        return 403;
    }
    proxy_pass http://gogs_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/TechGogs

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-862
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25120: Gogs Authorization Bypass Vulnerability

  • CVE-2026-25229: Gogs Auth Bypass Vulnerability

  • CVE-2025-64175: 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