CVE-2024-54148CWE-22CWE-61

Gogs has a Path Traversal in file editing UI

High · published December 23, 2024

CVSS v4.0
8.7
EPSS
1%
Percentile
57.9
In the wild
Unconfirmed
What it is

🚨 A crafty user can sneak a symlink into your Gogs repository and gain SSH access to your server! Just like a bad actor slipping a fake ID past the bouncer at a club! 🔥 Think of it like a sneaky food critic who manages to pass off a fake reservation at your restaurant. They get access to the kitchen and can wreak havoc before anyone realizes what's happening! This vulnerability is a serious threat because an attacker could gain unauthorized access to your server, leading to potential data breaches, unauthorized code changes, or worse—complete server compromise! It's like giving away the keys to the kingdom without even checking who’s at the door.

Put simply

Think of it like a sneaky food critic who manages to pass off a fake reservation at your restaurant. They get access to the kitchen and can wreak havoc before anyone realizes what's happening! This vulnerability allows a malicious user to commit a specially crafted symlink file to a Gogs repository, which can then be used to gain SSH access to the server. Essentially, the server trusts commands from a rogue file that it shouldn't.

What to do

This vulnerability is a serious threat because an attacker could gain unauthorized access to your server, leading to potential data breaches, unauthorized code changes, or worse—complete server compromise! It's like giving away the keys to the kingdom without even checking who’s at the door. To protect yourself, immediately update Gogs to version 0.13.1. Additionally, review your repository for any unexpected symlinks and tighten your access controls to prevent unauthorized commits. You've got this! Follow these steps, and you'll be securing your server in no time! 🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00855 · 57.9th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-61 · UNIX Symbolic Link (Symlink) Following
Published
2024-12-23T15:22Z
EPSS history
Timeline
  • 23 DEC 15:22Z
    Gogs has a Path Traversal in file editing UI
    cvelistv5