Vulnerability · Published Dec 23, 2024 · Assigned by GitHub_M

CVE-2024-54148Gogs has a Path Traversal in file editing UI

Critical 9.8

In plain English

A critical-severity path traversal in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.9%top 41.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Gogs is an open source self-hosted Git service. A malicious user is able to commit and edit a crafted symlink file to a repository to gain SSH access to the server. The vulnerability is fixed in 0.13.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogogs.io/gogs0.13.1GHSA-r7j8-5h9c-f6fx
Gogogs.io/gogs0.13.1GO-2024-3355

Affected products (as reported)

VendorProductVersions
gogs gogs < 0.13.1

Weakness: CWE-61, CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References