CRITICAL🇵🇱 Wersja polska

CVE-2026-25921

CVSS 9.3v3.1pub. 2026-03-05upd. 2026-03-06

Gogs is an open source self-hosted Git service. Prior to version 0.14.2, overwritable LFS object across different repos leads to supply-chain attack, all LFS objects are vulnerable to be maliciously overwritten by malicious attackers. This issue has been patched in version 0.14.2.

🤖 AI Analysis
How it works

Gogs does not sufficiently verify whether the uploaded LFS object belongs to the repository to which it is being uploaded (CWE-345: insufficient data authenticity verification). An attacker, by uploading an LFS object with an appropriately chosen hash, can overwrite an existing LFS object assigned to another repository. Since LFS objects are shared in an unisol ated manner, modification of one object affects all repositories using that resource. This results in the possibility of substituting, for example, binary files or libraries downloaded by users of other projects.

Impact

An attacker can maliciously overwrite any LFS object within a Gogs instance, leading to a supply chain attack — users downloading resources from other repositories may unknowingly receive modified, potentially harmful files. The integrity of stored artifacts is compromised at the instance level.

Mitigation & patch

Gogs should be updated to version 0.14.2 or later, where the issue has been fixed. The patch is available in the official v0.14.2 release and as commit 81ee8836445ac888d99da8b652be7d5cbc5c4d5c in the vendor's repository.

Who is affected

Gogs in versions prior to 0.14.2 — all instances using Git LFS functionality

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L
  • Gogs

    APP
    Gogs
    < 0.14.2
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2025-64111CRITICAL9.3PL ✓same product

Gogs: ominięcie patcha CVE-2024-56731 umożliwia RCE przez .git

CVE-2024-56731CRITICAL10.0PL ✓same product

Gogs: RCE przez usuwanie plików w katalogu .git (bypass patcha CVE-2024-39931)

CVE-2022-1884CRITICAL9.8PL ✓same product

RCE w Gogs poprzez command injection w parametrze tree_path (Windows)

CVE-2024-39930CRITICAL9.9PL ✓same product

Argument injection w serwerze SSH Gogs prowadzący do RCE

CVE-2024-39931CRITICAL9.9PL ✓same product

Gogs – nieautoryzowane usuwanie plików wewnętrznych (CWE-552)