GHSA-fv2p-qj5p-wqq4: LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
Summary Path traversal is also known as directory traversal. These vulnerabilities enable an attacker to read arbitrary files on the server that is running an application. In this case, an attacker might be able to write to arbitrary files on the server, allowing them to modify application data or behavior, and ultimately take full control of the server.
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
Path traversal is also known as directory traversal. These vulnerabilities enable an attacker to read arbitrary files on the server that is running an application. In this case, an attacker might be able to write to arbitrary files on the server, allowing them to modify application data or behavior, and ultimately take full control of the server.
Details
The file handler function trusts the filename provided by the user. This includes the cases when the user uses a path instead of the filename. This makes possible to write arbitrary files to the system and replace the files owned by _kuiper_ user on the filesystem. The vulnerable function is fileUploadHandler which is shown below:
https://github.com/lf-edge/ekuiper/blob/1e6b6b6601445eb05316532f5fbef7f0a863ecfe/internal/server/rest.go#L329-L359
Exploitation of this vulnerability allows an attacker to rewrite the files owned by ekuiper including the main kuiper binaries as they are owned by _kuiper_ user:
kuiper binaries
PoC
- The files should be uploaded to
/kuiper/data/uploadsdirectory. So let's move to the/kuiper/data, examine the existing files and create an emptytraversal-pocfile owned by _kuiper_:
Preparation
- Now, we can go to _Services > Configuration > File Management_ and try to upload file with name
../test:
GUI
Request in Burp
In the response we can see the path of the uploaded file and can assume that the traversal worked.
- Now we can try to change the
traversal-pocfile that we know exists on the server. It can be made with the following request:
traversal-poc change
- Now, if we look at the server, we can see the file created in the traversed directory and the replaced poc-file:
Changed files
Impact
- Possibility to upload files to external directories;
- Possibility to rewrite any file owned by _kuiper_ user on the filesystem.
Reported by Alexey Kosmachev, Lead Pentester from Bi.Zone
Credited to TheMostKnown.
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-gj54-gwj9-x2c6
eKuiper /config/uploads API arbitrary file writing may lead to RCE
high7.3No fixJul 3, 2025
