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

CVE-2025-8110: Gogs RCE Vulnerability via Symlink Handling

CVE-2025-8110 is a remote code execution vulnerability in Gogs caused by improper symbolic link handling in the PutContents API. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 11, 2026

CVE-2025-8110 Overview

CVE-2025-8110 is a symlink attack vulnerability affecting Gogs, the popular self-hosted Git service. Improper symbolic link handling in the PutContents API allows authenticated attackers to achieve local code execution on affected servers. This vulnerability exploits path traversal weaknesses (CWE-22) through symlink manipulation in the repository file update mechanism.

The vulnerability has been confirmed as actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating significant real-world threat activity targeting Gogs installations.

Critical Impact

Authenticated attackers can leverage improper symlink handling in the PutContents API to escape repository boundaries and execute arbitrary code on the underlying server, potentially compromising the entire Gogs instance and any connected systems.

Affected Products

  • Gogs (all versions prior to the security patch)
  • Self-hosted Gogs instances with user write access enabled
  • Gogs deployments accessible over network

Discovery Timeline

  • December 10, 2025 - CVE-2025-8110 published to NVD
  • January 20, 2026 - Last updated in NVD database

Technical Details for CVE-2025-8110

Vulnerability Analysis

This vulnerability stems from insufficient validation of file paths in the PutContents API when processing symbolic links. The Gogs repository management functionality fails to properly validate path hierarchies that contain symlinks, allowing attackers to bypass directory restrictions and write content to arbitrary locations outside the intended repository boundaries.

The core issue lies in how Gogs processes file update operations—specifically, the IsFile() function follows symlinks without validating whether the resulting path remains within the repository's allowed directory structure. An attacker with repository write access can craft a malicious commit containing symbolic links that point to sensitive locations on the server filesystem.

When the PutContents API is subsequently invoked to update files through these symlinks, the content is written to the symlink target rather than the repository itself, enabling arbitrary file write capabilities that can be escalated to code execution.

Root Cause

The root cause is the improper handling of symbolic links during file operations in the internal/osutil/osutil.go module. The original IsFile() function followed symlinks via os.Stat() without checking whether the resolved path was still within the repository boundaries. This allowed path hierarchies containing symlinks to bypass directory traversal protections designed to contain file operations within repository directories.

Attack Vector

The attack is network-accessible and requires low-privilege authenticated access to a Gogs repository. An attacker can exploit this vulnerability through the following sequence:

  1. Create or obtain write access to a repository on the target Gogs instance
  2. Craft a commit containing a symbolic link pointing outside the repository directory (e.g., to /var/gogs/data/ or other sensitive paths)
  3. Push the malicious commit to the repository
  4. Use the PutContents API to write content through the symlink
  5. The content is written to the symlink target, allowing arbitrary file creation/modification
  6. Escalate to code execution by overwriting configuration files, templates, or other executable content
go
// Security patch in internal/osutil/osutil.go
// Source: https://github.com/gogs/gogs/commit/553707f3fd5f68f47f531cfcff56aa3ec294c6f6
 	"os/user"
 )
 
-// IsFile returns true if given path exists as a file (i.e. not a directory).
+// IsFile returns true if given path exists as a file (i.e. not a directory)
+// following any symlinks.
 func IsFile(path string) bool {
 	f, e := os.Stat(path)
 	if e != nil {

The patch addresses this by rejecting any updates where the path hierarchy contains symbolic links, ensuring file operations remain confined to legitimate repository directories.

Detection Methods for CVE-2025-8110

Indicators of Compromise

  • Unexpected symbolic links within repository directories pointing to locations outside the repository root
  • File modification timestamps on system files that correlate with Gogs API activity
  • Repository commits containing symlinks with absolute paths or ../ traversal patterns
  • Anomalous file writes to Gogs configuration directories or template locations

Detection Strategies

  • Monitor Git repository contents for symbolic links pointing outside repository boundaries during push operations
  • Implement file integrity monitoring (FIM) on Gogs installation directories and configuration files
  • Analyze Gogs API logs for PutContents operations following symlink creation
  • Deploy endpoint detection to identify file write operations from the Gogs process to unexpected filesystem locations
  • Review repository commit history for suspicious symlink additions

Monitoring Recommendations

  • Enable verbose logging for the Gogs PutContents API and monitor for path traversal patterns
  • Configure alerts for symbolic link creation within repositories that reference system paths
  • Implement real-time monitoring of critical Gogs files including app.ini, templates, and hook scripts
  • Use SentinelOne Singularity to detect anomalous process behavior from the Gogs service

How to Mitigate CVE-2025-8110

Immediate Actions Required

  • Apply the security patch from GitHub Gogs Pull Request #8078 immediately
  • Review all repositories for existing symbolic links that may point outside repository boundaries
  • Restrict repository creation and write access to trusted users only
  • Consider temporarily disabling the PutContents API if patching is delayed
  • Audit recent repository activity for potential exploitation attempts

Patch Information

The vulnerability has been addressed in commit 553707f. The fix implements validation to reject any file updates where the path hierarchy contains symbolic links. Organizations should upgrade to the patched version of Gogs as soon as possible.

Additional details are available in the GitHub Gogs Pull Request #8078 and the Wiz Blog RCE Exploit Analysis.

Workarounds

  • Disable or restrict access to the PutContents API endpoint until the patch can be applied
  • Configure repository hooks to scan for and reject commits containing symbolic links
  • Run Gogs in a containerized environment with restricted filesystem access and read-only mounts where possible
  • Implement network segmentation to limit the impact of potential code execution
bash
# Configuration example: Restrict Gogs process filesystem access using systemd
# Add to /etc/systemd/system/gogs.service.d/security.conf
[Service]
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/gogs/data /var/gogs/repositories
NoNewPrivileges=true

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGogs

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability19.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/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:Y/R:U/V:C/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-22
  • Technical References
  • Wiz Blog RCE Exploit Analysis

  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Discussion

  • OpenWall OSS Security Update

  • OpenWall OSS Security Update

  • OpenWall OSS Security Update

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • GitHub Gogs Commit Changes

  • GitHub Gogs Pull Request
  • Related CVEs
  • CVE-2026-26194: Gogs Git Service RCE Vulnerability

  • CVE-2025-64111: Gogs Git Service RCE Vulnerability

  • CVE-2024-56731: Gogs Remote Code Execution Vulnerability

  • CVE-2022-0415: Gogs Repository File Upload RCE 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