SCA: security update for gogs.io/gogs (GHSA-958j-443g-7mm7)

critical Tenable Self-Hosted Container Security Plugin ID 413046

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-1884)

See Also

https://github.com/advisories/GHSA-958j-443g-7mm7

Plugin Details

Severity: Critical

ID: 413046

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.15

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-1884

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/2/2022

Vulnerability Publication Date: 6/2/2022

Reference Information

CVE: CVE-2022-1884