CVE-2022-1992CWE-22

Path Traversal in gogs/gogs

Critical · published June 8, 2022

CVSS v3.0
10.0
EPSS
2%
Percentile
82.9
In the wild
Unconfirmed
What it is

🚨 A sneaky path traversal vulnerability in Gogs allows attackers to access any file on the server, making it a critical risk! 🔥 Think of this as a delivery driver ignoring a restricted area and delivering packages outside of their designated route — they could end up with sensitive documents in hand! 📦 An attacker can exploit this flaw to read any file the server has access to, potentially exposing sensitive configuration files, user data, or even code repositories. This could lead to devastating data breaches and significant security threats for your organization.

Put simply

Think of this as a delivery driver ignoring a restricted area and delivering packages outside of their designated route — they could end up with sensitive documents in hand! 📦 This path traversal vulnerability allows an attacker to manipulate file paths and access files stored outside the intended directory, bypassing intended security measures.

What to do

An attacker can exploit this flaw to read any file the server has access to, potentially exposing sensitive configuration files, user data, or even code repositories. This could lead to devastating data breaches and significant security threats for your organization. Immediately upgrade Gogs to version 0.12.9 or later to patch this vulnerability. Review your deployment configuration and restrict file access permissions to minimize exposure. Don't forget to check your file storage settings to ensure no sensitive files are exposed! You've got this! Take these steps and your system will be secure in no time. 🛡️

The record
Technical detail
CVSS v3.0
10.0 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02271 · 82.9th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2022-06-08T13:30Z
EPSS history
Timeline
  • 08 JUN 13:30Z
    Path Traversal in gogs/gogs
    cvelistv5