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

CVE-2026-25921: Gogs LFS Supply-Chain Attack Vulnerability

CVE-2026-25921 is a supply-chain attack vulnerability in Gogs self-hosted Git service that allows attackers to maliciously overwrite LFS objects across repositories. This article covers technical details, affected versions, and fixes.

Published: March 6, 2026

CVE-2026-25921 Overview

CVE-2026-25921 is a critical vulnerability affecting Gogs, an open source self-hosted Git service. Prior to version 0.14.2, the application contains an overwritable LFS (Large File Storage) object vulnerability that allows malicious actors to overwrite LFS objects across different repositories. This flaw enables supply-chain attacks where attackers can replace legitimate files with malicious content, potentially compromising downstream users and systems that depend on the affected repositories.

Critical Impact

This vulnerability allows unauthenticated attackers to overwrite any LFS object across repositories, enabling supply-chain attacks that could compromise software integrity and affect all users consuming files from affected Gogs instances.

Affected Products

  • Gogs versions prior to 0.14.2
  • All Gogs installations with LFS enabled
  • Repositories utilizing Git LFS for large file storage

Discovery Timeline

  • March 5, 2026 - CVE-2026-25921 published to NVD
  • March 5, 2026 - Last updated in NVD database

Technical Details for CVE-2026-25921

Vulnerability Analysis

This vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity), indicating that the Gogs application fails to properly verify the authenticity and ownership of LFS objects before allowing modifications. The attack can be executed remotely over the network without requiring authentication or user interaction. The vulnerability has a changed scope, meaning successful exploitation can impact resources beyond the vulnerable component itself, specifically affecting downstream consumers of the compromised LFS objects.

The integrity impact is significant as attackers can modify LFS objects that other repositories and users depend on, while availability is partially affected due to potential disruption of legitimate file access.

Root Cause

The root cause lies in the insufficient access control validation within Gogs' LFS implementation. The application does not properly verify repository ownership or permissions when processing LFS object uploads, allowing objects with the same content hash to be overwritten regardless of which repository originally created them. This architectural flaw in the LFS object storage mechanism fails to implement proper isolation between repositories.

Attack Vector

The attack exploits the shared LFS object storage architecture in Gogs. Since LFS objects are typically stored based on their content hash (SHA-256), and Gogs did not properly enforce repository-level access controls on these objects, an attacker can:

  1. Identify the hash of a target LFS object in a victim repository
  2. Create a malicious file with the same hash or upload a replacement object
  3. Overwrite the legitimate LFS object with malicious content
  4. All repositories referencing that LFS object will now serve the malicious content

This creates a severe supply-chain risk where software dependencies, binaries, or other critical files stored in LFS can be silently replaced with backdoored or malicious versions.

For detailed technical analysis, refer to the GitHub Security Advisory GHSA-cj4v-437j-jq4c and the associated pull request.

Detection Methods for CVE-2026-25921

Indicators of Compromise

  • Unexpected modifications to LFS object timestamps or metadata
  • Hash mismatches between expected and actual LFS object content
  • Anomalous LFS upload activity from unrecognized sources or repositories
  • User reports of corrupted or unexpected file content from LFS-tracked files

Detection Strategies

  • Monitor LFS object access logs for cross-repository write operations
  • Implement integrity verification by comparing LFS object hashes against known-good values
  • Deploy file integrity monitoring on the LFS storage backend directory
  • Review Git audit logs for suspicious repository activity patterns

Monitoring Recommendations

  • Enable comprehensive logging for all LFS API endpoints
  • Set up alerts for LFS object modifications outside of normal CI/CD workflows
  • Implement content verification pipelines for critical LFS-stored artifacts
  • Regularly audit LFS object ownership and access patterns

How to Mitigate CVE-2026-25921

Immediate Actions Required

  • Upgrade Gogs to version 0.14.2 or later immediately
  • Audit all LFS objects for potential unauthorized modifications
  • Verify integrity of critical files stored in LFS against known-good backups
  • Review access logs for any suspicious LFS-related activity prior to patching

Patch Information

Gogs has released version 0.14.2 which addresses this vulnerability by implementing proper repository-level access controls for LFS objects. The fix ensures that LFS objects can only be modified by users with appropriate permissions on the owning repository.

  • Patched Version:0.14.2
  • Security Commit:81ee8836445ac888d99da8b652be7d5cbc5c4d5c
  • Release Notes:Gogs v0.14.2
  • Security Advisory:GHSA-cj4v-437j-jq4c

Workarounds

  • Temporarily disable LFS functionality if immediate patching is not possible
  • Implement network-level access controls to restrict LFS endpoint access to trusted sources
  • Deploy a reverse proxy with additional authentication requirements for LFS operations
  • Consider migrating critical LFS objects to an alternative secure storage solution until patching is complete
bash
# Check current Gogs version
gogs --version

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

# Upgrade to patched version 0.14.2
# Follow official Gogs upgrade documentation for your installation method

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechGogs

  • SeverityCRITICAL

  • CVSS Score9.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-345
  • Technical References
  • GitHub Commit Details

  • GitHub Pull Request

  • GitHub Release v0.14.2

  • GitHub Security Advisory GHSA-cj4v-437j-jq4c
  • Related CVEs
  • CVE-2026-26196: Gogs Information Disclosure Vulnerability

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

  • CVE-2026-26194: Gogs Git Service RCE Vulnerability

  • CVE-2026-26195: Gogs Self-Hosted Git Service XSS Flaw
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