FixVibe

// 代码 / 聚焦

Gogs Directory Traversal Dependency Advisory

An affected Gogs runtime can put file-upload path handling on a traversal boundary.

What it is

Self-hosted Git services sit close to source code, automation tokens, and deployment workflows. A path traversal advisory in Gogs should be treated as a runtime upgrade item when the affected version is part of the deployed service.

How it happens

CVE-2018-20303 is a directory traversal in Gogs's file-upload handling, fixed in Gogs 0.11.82.1218. A crafted upload path lets the file land outside the upload directory on the server.

What an attacker gets

An attacker who can upload files to an affected Gogs server may be able to write files outside the intended directory, on the machine that holds your repositories, deploy keys, and automation tokens.

// what fixvibe reports

What FixVibe reports

Runs when you connect a GitHub repository, on Pro and above. Each finding shows the file and line, its severity and fix steps you can paste into your AI coding tool.

How to fix it

Upgrade Gogs to 0.11.82.1218 or newer, or to a build that includes commit ff93d9dbda5c, regenerate Go module or Dep lock metadata, rebuild the deployed Gogs runtime, and verify the running service reports the patched version before closing the advisory.

// 在你自己的應用上跑一遍

放心继續發布,FixVibe 持續幫你看守風险。

Connect a GitHub repo to check its code, dependencies and workflows.

源代码
198
本類别中触發的测試
模塊
155
專属 源代码 检查
GitHub repos
190+
checks on each connected repo
Connect GitHub →

// 最新检查 · 实用修複 · 安心發布

Gogs Directory Traversal Dependency Advisory: what it is and how to fix it · FixVibe