{"id":11266,"date":"2026-03-11T10:04:34","date_gmt":"2026-03-11T10:04:34","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2026\/03\/11\/gogs-vulnerability-enables-attackers-to-silently-overwrite-large-file-storage-objects\/"},"modified":"2026-03-11T10:04:34","modified_gmt":"2026-03-11T10:04:34","slug":"gogs-vulnerability-enables-attackers-to-silently-overwrite-large-file-storage-objects","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2026\/03\/11\/gogs-vulnerability-enables-attackers-to-silently-overwrite-large-file-storage-objects\/","title":{"rendered":"Gogs Vulnerability Enables Attackers to Silently Overwrite Large File Storage Objects"},"content":{"rendered":"<p>    Gogs Vulnerability Enables Attackers to Silently Overwrite Large File Storage Objects<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A critical security flaw has been discovered in a popular open-source, self-hosted Git service, allowing attackers to <a href=\"https:\/\/cybersecuritynews.com\/github-vulnerability-let-malicious-repos-to-leaks-users-credentials\/\" target=\"_blank\" rel=\"noreferrer noopener\">overwrite Large File Storage (LFS) objects secretly.<\/a><\/p>\n<p>Tracked as CVE-2026-25921, this maximum-severity vulnerability carries a CVSS 3.1 score of 10.0. It creates a severe risk for <a href=\"https:\/\/cybersecuritynews.com\/lazarus-malware\/\" target=\"_blank\" rel=\"noreferrer noopener\">software supply-chain attacks.<\/a><\/p>\n<p>The flaw currently affects Gogs versions 0.14.1 and earlier, with no official patch available at the time of disclosure.<\/p>\n<p>\u00a0If exploited, malicious actors could tamper with critical binaries, datasets, or software builds across any repository on a shared server without triggering a single warning.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-gogs-overwrite-vulnerability\">\n<strong>Gogs Overwrite<\/strong> <strong>Vulnerability<\/strong><br \/>\n<\/h2>\n<p>The root cause of this vulnerability stems from two critical design flaws in how Gogs handles its Large File Storage architecture:<\/p>\n<p><strong>Lack of Storage Isolation:<\/strong> Gogs stores all uploaded LFS objects in a single shared location without isolating them by repository.<\/p>\n<p>Because the storage path does not include a<a href=\"https:\/\/cybersecuritynews.com\/any-runs-enhanced-threat-intelligence-feeds\/\" target=\"_blank\" rel=\"noreferrer noopener\"> unique repository ID<\/a>, every project hosted on the Gogs instance shares the same centralized file pool.<\/p>\n<p><strong>Missing Hash Verification:<\/strong> When a user uploads an LFS file, Gogs completely fails to verify if the file\u2019s actual content matches its claimed <a href=\"https:\/\/cybersecuritynews.com\/xworm-malware-fake-financial-receipts\/\" target=\"_blank\" rel=\"noreferrer noopener\">SHA-256 cryptographic hash (also known as the OID)<\/a>.<\/p>\n<p>Because of these missing security checks, an attacker only needs to know the SHA-256 hash of a target LFS file.<\/p>\n<p>The attacker can then upload a manipulated file, such as a <a href=\"https:\/\/cybersecuritynews.com\/courtroom-software-hijack\/\" target=\"_blank\" rel=\"noreferrer noopener\">backdoored software installer<\/a>, to their own repository while claiming the victim\u2019s file hash.<\/p>\n<p>The Gogs server assumes the upload is a routine client retry and unthinkingly overwrites the original, legitimate file in the shared storage database.<\/p>\n<p>The impact of CVE-2026-25921 is devastating because it requires low attack complexity, no special privileges, and zero user interaction.<\/p>\n<p><strong>Supply-Chain Compromise:<\/strong> When legitimate developers or automated systems download LFS objects from the affected server, they will unknowingly receive the attacker\u2019s backdoored file.<\/p>\n<p><strong>Undetectable Tampering:<\/strong> Because the system implicitly trusts the attacker\u2019s manipulated file without <a href=\"https:\/\/cybersecuritynews.com\/comodo-internet-security-2025-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">data authenticity validation (CWE-345)<\/a>, the overwrite happens completely silently.<\/p>\n<p>Victims downloading the LFS object from the Gogs webpage will see no warnings, errors, or alerts that the file has been altered. The vulnerability was discovered and <a href=\"https:\/\/github.com\/gogs\/gogs\/security\/advisories\/GHSA-cj4v-437j-jq4c\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">reported by security researcher zjuchenyuan<\/a>.<\/p>\n<p>Because there is no officially patched version yet, organizations relying on self-hosted Gogs instances must be highly cautious.<\/p>\n<p>Administrators should consider the following temporary security measures until an official fix is released:<\/p>\n<p><strong>Restrict Permissions:<\/strong> Strictly limit account creation and LFS upload permissions to highly trusted internal users to prevent <a href=\"https:\/\/cybersecuritynews.com\/rails-apps-rce-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">unauthorized actors from overwriting files.<\/a><\/p>\n<p><strong>Manual Integrity Checks:<\/strong> <a href=\"https:\/\/cybersecuritynews.com\/best-remote-monitoring-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">Implement external monitoring scripts<\/a> to periodically verify that the actual SHA-256 hashes of critical LFS files on the host disk match their expected values in the database.<\/p>\n<p>The eventual developer fix will require Gogs to strictly verify that all uploaded LFS objects mathematically match their claimed SHA-256 hash before writing them to the server disk.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong>Follow us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>, and <a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a> for daily cybersecurity updates. <a href=\"https:\/\/cybersecuritynews.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Contact us<\/a> to feature your stories.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/gogs-overwrite-vulnerability\/\">Gogs Vulnerability Enables Attackers to Silently Overwrite Large File Storage Objects<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Abinaya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/gogs-overwrite-vulnerability\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gogs Vulnerability Enables Attackers to Silently Overwrite Large File Storage Objects A critical security flaw has been discovered in a popular open-source, self-hosted Git service, allowing attackers to overwrite Large File Storage (LFS) objects secretly. Tracked as CVE-2026-25921, this maximum-severity vulnerability carries a CVSS 3.1 score of 10.0. It creates a severe risk for software [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,648],"tags":[130],"class_list":["post-11266","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/11266"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=11266"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/11266\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=11266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=11266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=11266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}