CVE-2018-15747: glot-code-runner RCE
9.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85114%
CWE
Published
5/24/2022
Updated
7/19/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 |
---|---|---|---|
github.com/prasmussen/glot-code-runner | go | <= 2018-05-19 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from executing untrusted Python code containing os.system
calls without validation. While exact implementation details aren't shown, the core issue exists in the code execution handler that processes the 'content' field from JSON input. The Go code runner's main execution function would be responsible for this unsafe code execution pattern, as evidenced by the PoC demonstrating direct command execution through Python's os.system
.