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

CVE-2025-68937: Forgejo RCE Vulnerability

CVE-2025-68937 is a remote code execution vulnerability in Forgejo that allows attackers to write to unintended files and potentially gain shell access. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-68937 Overview

CVE-2025-68937 is a critical symlink attack vulnerability in Forgejo, a self-hosted Git forge software. The vulnerability allows attackers to write to unintended files and potentially obtain server shell access through mishandling of out-of-repository symlink destinations when processing template repositories. This flaw stems from improper UNIX symbolic link following (CWE-61), enabling path traversal beyond intended repository boundaries.

Critical Impact

Attackers can exploit this vulnerability to write arbitrary files on the server and potentially achieve remote code execution, compromising the entire Forgejo instance and underlying infrastructure.

Affected Products

  • Forgejo versions prior to 13.0.2
  • Forgejo 11 LTS versions prior to 11.0.7
  • Gitea versions prior to 1.24.7 (related vulnerability)

Discovery Timeline

  • 2025-12-26 - CVE-2025-68937 published to NVD
  • 2025-12-29 - Last updated in NVD database

Technical Details for CVE-2025-68937

Vulnerability Analysis

This vulnerability exists in Forgejo's template repository handling mechanism. When a user creates a new repository from a template, the system copies files from the template repository to the new repository. The flaw occurs because the application fails to properly validate or sanitize symbolic links within template repositories that point to destinations outside the repository directory structure.

An attacker who can create or control a template repository can craft malicious symlinks that, when followed during the repository creation process, allow writing to arbitrary locations on the server's filesystem. This represents a classic UNIX symlink following vulnerability where the application trusts user-controlled symlink targets without proper boundary validation.

The severity of this vulnerability is amplified by the potential for achieving server shell access, indicating that attackers could potentially overwrite critical configuration files, inject malicious code into executable locations, or compromise SSH keys and other authentication mechanisms.

Root Cause

The root cause is improper handling of symbolic links in the template repository copying mechanism. The application follows symlinks during file operations without verifying that the resolved destination path remains within the expected repository boundaries. This allows out-of-repository symlink destinations to be dereferenced, enabling arbitrary file writes through path traversal.

Attack Vector

The attack leverages network-accessible Forgejo functionality to exploit template repositories. An attacker would craft a template repository containing symbolic links that point to sensitive locations outside the repository directory (e.g., /etc/passwd, application configuration files, or web-accessible directories). When a victim or the attacker creates a new repository using this malicious template, the symlinks are followed, and file contents are written to the attacker-specified locations.

The exploitation flow involves:

  1. Creating a template repository with malicious symlinks pointing outside the repository root
  2. Adding file content that should be written to the symlink destination
  3. Triggering repository creation from the malicious template
  4. The server follows the symlink and writes content to the unintended destination

Detection Methods for CVE-2025-68937

Indicators of Compromise

  • Unexpected symbolic links in template repositories pointing to system paths (e.g., /etc/, /var/, /home/)
  • Unusual file modifications on the server outside of repository directories
  • Template repositories containing symlinks with absolute paths or excessive parent directory references (../)
  • Unauthorized modifications to server configuration files or SSH authorized_keys

Detection Strategies

  • Monitor file system operations for writes originating from the Forgejo process to directories outside repository storage paths
  • Implement audit logging for template repository creation and usage events
  • Scan existing template repositories for symbolic links with suspicious destinations
  • Deploy file integrity monitoring (FIM) on critical system directories

Monitoring Recommendations

  • Enable and review Forgejo application logs for template repository operations
  • Monitor server file system changes using tools like auditd or OSSEC
  • Implement alerting for any file modifications in sensitive directories attributed to the Forgejo service account
  • Review newly created template repositories for symbolic link content

How to Mitigate CVE-2025-68937

Immediate Actions Required

  • Upgrade Forgejo to version 13.0.2 or later immediately
  • For organizations running Forgejo 11 LTS, upgrade to version 11.0.7 or later
  • Audit existing template repositories for malicious symbolic links
  • Consider temporarily disabling template repository functionality until patching is complete

Patch Information

Forgejo has released security patches addressing this vulnerability. Organizations should update to the following versions:

  • Forgejo 13.x: Update to version 13.0.2 or later - See Forgejo Release Notes 13.0.2
  • Forgejo 11 LTS: Update to version 11.0.7 or later - See Forgejo Release Notes 11.0.7
  • Gitea users: A related fix is available in version 1.24.7 - See Gitea Release Announcement

Additional security information is available in Forgejo Security Issue #43.

Workarounds

  • Restrict template repository creation permissions to trusted administrators only
  • Implement server-side restrictions preventing the Forgejo process from writing outside designated repository directories
  • Use containerization or sandboxing to limit the impact of potential exploitation
  • Deploy filesystem access controls (SELinux, AppArmor) to restrict the Forgejo service account
bash
# Example: Restrict Forgejo service with AppArmor profile
# Add to /etc/apparmor.d/forgejo
# Deny writes outside repository directories
deny /etc/** w,
deny /var/www/** w,
deny /home/*/.ssh/** w,
# Allow only designated repository storage
/var/lib/forgejo/repositories/** rwk,

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechForgejo

  • SeverityCRITICAL

  • CVSS Score9.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-61
  • Technical References
  • Gitea Release Announcement

  • Forgejo Milestone Update #27340

  • Forgejo Milestone Update #29156

  • Forgejo Release Notes 11.0.7

  • Forgejo Release Notes 13.0.2

  • Forgejo Security Issue #43
  • Related CVEs
  • CVE-2025-68971: Forgejo DoS Vulnerability via Upload
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