GHSA-fv2p-qj5p-wqq4 LF Edge eKuiper vulnerable to File Path Traversal leading to file replacement
An attacker can exploit path traversal in the file upload handler to overwrite critical binaries, leading to remote code execution and full server compromise.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-fv2p-qj5p-wqq4?
GHSA-fv2p-qj5p-wqq4 is a path traversal vulnerability in github.com/lf-edge/ekuiper, published on 3 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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:
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:
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:
- Now, we can go to Services > Configuration > File Management and try to upload file with name
../test:
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:
- Now, if we look at the server, we can see the file created in the traversed directory and the replaced poc-file:
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
Which versions are affected by GHSA-fv2p-qj5p-wqq4?
6 open source packages ship an affected version, including github.com/lf-edge/ekuiper and github.com/lf-edge/ekuiper/v2.
| Package | Affected | Fixed in |
|---|---|---|
github.com/lf-edge/ekuiper Go | All versions | None |
github.com/lf-edge/ekuiper Go | All versions to 1.14.7 | None |
github.com/lf-edge/ekuiper Go | All versions to 1.14.7 | None |
github.com/lf-edge/ekuiper/v2 Go | All versions | 2.2.0 |
github.com/lf-edge/ekuiper/v2 Go | All versions | 2.2.0 |
github.com/lf-edge/ekuiper/v2 Go | All versions | 2.2.0 |
How do I fix GHSA-fv2p-qj5p-wqq4?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is GHSA-fv2p-qj5p-wqq4 being exploited?
There is no known exploitation of GHSA-fv2p-qj5p-wqq4 in the wild and no public exploit code.
Sources
Also known as GO-2025-3799.