CVE-2018-18926: Gitea Remote Code Execution (RCE)
9.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.91058%
CWE
Published
2/15/2022
Updated
9/15/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
code.gitea.io/gitea | go | < 1.5.2 | 1.5.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper session ID validation in go-macaron/session
components. The commit diff shows critical changes to session.go
's read()
function (added session ID format validation) and file.go
's handling (UUID validation). These functions directly process
untrusted session IDs, and their pre-patch versions lacked the necessary checks to prevent malicious session ID exploitation, enabling deserialization attacks. The CWE-94 classification and RCE impact confirm this relates to code injection via uncontrolled session ID input.