← Back

CVE-2022-1884

nvd nist
Published: Nov 15, 2024Modified: Nov 19, 2024

JSON object

Loading...
9.8
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitability: 3.9 / Impact: 5.9
Source: NVD

Description

A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. The vulnerability arises due to improper validation of the `tree_path` parameter during file uploads. An attacker can set `tree_path=.git.` to upload a file into the .git directory, allowing them to write or rewrite the `.git/config` file. If the `core.sshCommand` is set, this can lead to remote command execution.

Affected (1)

Products: Gogs: Gogs
1 product
Gogs
Configuration A
1 vulnerable · 1 platform
Vulnerable SoftwareAffected Versions
Up to 0.12.7
Running on/withPlatform Versions
Microsoft
Windows
All versions

References (1)

Source: security@huntr.dev
ExploitThird Party Advisory

Timeline

No history available yet.