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

CVE-2026-24135: Gogs Path Traversal Vulnerability

CVE-2026-24135 is a path traversal flaw in Gogs self-hosted Git service that allows authenticated users to delete arbitrary files on the server. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-24135 Overview

A path traversal vulnerability has been identified in Gogs, a popular open source self-hosted Git service. The vulnerability exists in the updateWikiPage function and allows authenticated users with write access to a repository's wiki to delete arbitrary files on the server by manipulating the old_title parameter in the wiki editing form. This represents a significant security risk as it could lead to system compromise, data loss, or service disruption.

Critical Impact

Authenticated attackers with wiki write access can delete arbitrary files on the server, potentially causing data loss, system instability, or complete service disruption.

Affected Products

  • Gogs version 0.13.3 and prior versions
  • All Gogs installations with wiki functionality enabled

Discovery Timeline

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

Technical Details for CVE-2026-24135

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), which occurs when user-supplied input is used to construct a file path without proper sanitization. In the context of Gogs, the updateWikiPage function fails to adequately validate the old_title parameter, allowing attackers to inject path traversal sequences (such as ../) to reference files outside the intended wiki directory.

The attack requires authentication and write access to a repository's wiki, which limits the attack surface but does not eliminate the risk. Many organizations allow external contributors or have permissive access controls on wiki content, making this vulnerability exploitable in real-world scenarios.

Root Cause

The root cause of this vulnerability lies in insufficient input validation within the updateWikiPage function. When processing the old_title parameter during wiki page editing operations, the function does not properly sanitize or validate the input to prevent directory traversal sequences. This allows an attacker to craft malicious input that references files outside the wiki directory structure, enabling arbitrary file deletion on the server's filesystem.

Attack Vector

The attack is network-accessible and requires low privileges (authenticated user with wiki write access). An attacker would:

  1. Authenticate to the Gogs instance with an account that has write access to a repository's wiki
  2. Navigate to the wiki editing functionality
  3. Manipulate the old_title parameter to include path traversal sequences (e.g., ../../etc/important_file)
  4. Submit the form to trigger the file deletion operation on the targeted file path

The vulnerability mechanism involves the manipulation of the old_title parameter in the wiki editing form. When a user edits a wiki page, the function processes the old title to handle page renames. By injecting path traversal sequences into this parameter, an attacker can reference and delete files outside the intended wiki directory. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-24135

Indicators of Compromise

  • Unexpected file deletions or missing system files on the Gogs server
  • Wiki page edit requests containing path traversal sequences (../, ..%2f, or similar encodings) in the old_title parameter
  • Unusual patterns in web server access logs showing manipulation of wiki edit endpoints
  • System integrity check failures indicating unauthorized file modifications

Detection Strategies

  • Monitor HTTP request parameters for path traversal patterns in wiki-related endpoints
  • Implement file integrity monitoring (FIM) on critical server files and directories
  • Review Gogs application logs for anomalous wiki editing activity
  • Deploy web application firewall (WAF) rules to detect and block path traversal attempts

Monitoring Recommendations

  • Enable detailed logging for all wiki operations in Gogs
  • Set up alerts for file deletion events outside of normal wiki directories
  • Monitor user activity logs for accounts with wiki write access
  • Implement real-time log analysis to detect path traversal attack patterns

How to Mitigate CVE-2026-24135

Immediate Actions Required

  • Upgrade Gogs to version 0.13.4 or later immediately
  • Review and restrict wiki write access permissions to trusted users only
  • Audit existing wiki content for any signs of exploitation
  • Back up critical server files and implement file integrity monitoring

Patch Information

The Gogs development team has released security patches addressing this vulnerability. Users should upgrade to version 0.13.4 or any version in the 0.14.0+dev series. The patch implements proper input validation for the old_title parameter, preventing path traversal attacks. For complete patch details, refer to the GitHub Security Advisory.

Workarounds

  • Temporarily disable wiki functionality if upgrading is not immediately possible
  • Implement strict access controls to limit wiki write permissions to highly trusted users
  • Deploy a web application firewall (WAF) with rules to block path traversal attempts
  • Consider running Gogs in a containerized environment with restricted filesystem access
bash
# Configuration example - Restricting wiki access via repository settings
# Navigate to Repository Settings > Wiki and disable public wiki editing
# Or restrict access to repository collaborators only

# For Docker deployments, consider limiting container filesystem access
docker run --read-only \
  --mount type=tmpfs,destination=/tmp \
  --mount type=volume,source=gogs-data,target=/data \
  gogs/gogs:0.13.4

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGogs

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/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-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-23633: Gogs Path Traversal Vulnerability

  • CVE-2026-26196: Gogs Information Disclosure Vulnerability

  • CVE-2026-26276: Gogs Self-Hosted Git Service XSS Flaw

  • CVE-2026-25921: Gogs LFS Supply-Chain Attack 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