GHSA-p69r-v3h4-rj4f: Duplicate Advisory: github.com/gogs/gogs affected by CVE-2024-39930
10
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
7/4/2024
Updated
12/23/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/gogs/gogs | go | <= 0.13.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper argument handling in the SSH server's environment variable processing. The code in internal/ssh/ssh.go directly passes user-controlled input (env.Name and env.Value) to the 'env' command without proper sanitization. This allows attackers to inject the '--split-string' argument which enables command execution through argument splitting. The analysis from SonarSource explicitly identifies this code path and demonstrates how the env command's --split-string parameter can be abused for RCE. The CWE-88 classification (Argument Injection) and technical details from multiple sources confirm this assessment.