# CVE-2025-24979: LF Edge eKuiper: SSRF in External Service

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-918
- **Aliases:** GHSA-pqqc-8v73-9gg2, GO-2026-6447
- **Published:** 2026-09-09T17:56:32.000Z
- **Modified:** 2026-09-17T17:40:31.119Z

## Who should check

- Projects that depend on Go package github.com/lf-edge/ekuiper/v2 (\< 2.4.0)
- Projects that depend on Go package github.com/lf-edge/ekuiper

## Description

\#\#\# Summary
Server-side request forgery (SSRF) vulnerability in eKuiper allows an attacker with permissions to register external services or create rules to induce the eKuiper server to make requests to unintended network locations, such as internal services, loopback interfaces (localhost), or cloud metadata endpoints.

\#\#\# Details
Prior to v2.4.0, eKuiper external service registrations and HTTP invocations did not validate destination IP addresses. An attacker with access to the eKuiper management API could register an external service pointing to an internal address (such as \`http://127.0.0.1:9081\` or other internal network services) and trigger queries using service functions (e.g. \`SELECT tsschemaless(...) FROM demo\`). This allows probing internal networks, leaking sensitive information (such as internal endpoints/credentials), or interacting with internal APIs accessible to the eKuiper host.

\#\#\# PoC
1. Create an external service with an address pointing to an internal network / localhost:

\`\`\`json
{
  "interfaces": {
    "tsschemaless": {
      "address": "http://127.0.0.1:9081",
      "protocol": "rest",
      "options": {
        "insecureSkipVerify": true,
        "headers": {
          "Accept-Charset": "utf-8"
        }
      },
      "schemaless": true
    }
  }
}
\`\`\`
2. Load it to eKuiper and create a rule invoking it, e.g.: \`SELECT tsschemaless("get", "/metadata/sources/yaml/mqtt", \*) FROM demo\`.
3. Run the rule. When data flows through the stream, the response from the internal service is retrieved and can be routed to an external sink or inspected.

\#\#\# Impact
Server-Side Request Forgery (SSRF) allowing unauthorized access / probing of internal network services.

\#\#\# Remediation & Patches
- \*\*Upgrade to eKuiper \>= 2.4.0\*\*: Starting with v2.4.0, SSRF protection (\`httpx.GetSSRFDialContext\`) is enabled by default across HTTP clients, blocking requests to private, loopback, link-local, multicast, and unspecified IP addresses.

\#\#\# Workarounds (for versions \< 2.4.0)
If unable to upgrade immediately:
1. \*\*Restrict Management API Access\*\*: Restrict access to the eKuiper REST API (port 9081) and CLI using network firewalls, reverse proxies, and authentication so only trusted administrators can create or update services and rules.
2. \*\*Egress Network Filtering\*\*: Use firewall / iptables rules or container network isolation to block outbound requests from eKuiper to private subnets, loopback addresses, and cloud metadata endpoints (\`169.254.169.254\`).
3. \*\*Audit Service Definitions\*\*: Regularly review registered external services (\`GET /services\` or \`bin/kuiper show services\`) to verify target hosts.

\#\#\# Notes for Users Upgrading to \>= 2.4.0
- In v2.4.0 and later, \`basic.enablePrivateNet\` in \`kuiper.yaml\` defaults to \`false\` (blocking private network access).
- If a developer's deployment legitimately requires eKuiper to communicate with internal REST services or private networks, they can explicitly opt in by setting \`basic.enablePrivateNet: true\` (or via environment variable \`KUIPER\_\_BASIC\_\_ENABLEPRIVATENET=true\`). Ensure eKuiper's API is protected before enabling this setting.

Reported by Alexey Kosmachev, Bi.Zone

## Affected and fixed versions

- Go `github.com/lf-edge/ekuiper/v2`: affected \< 2.4.0; fixed 2.4.0 (osv)
- Go `github.com/lf-edge/ekuiper`: affected see advisory; fixed no fix listed yet (osv)

## Mitigation

- Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-24979. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-24979.md
Affected: github.com/lf-edge/ekuiper/v2 < 2.4.0; github.com/lf-edge/ekuiper
Fixed in: 2.4.0

Steps:
1. Search this machine and project for github.com/lf-edge/ekuiper/v2 (Go), github.com/lf-edge/ekuiper (Go): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-24979 being exploited?

There is no confirmed exploitation: CVE-2025-24979 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2025-24979?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-24979?

github.com/lf-edge/ekuiper/v2 \< 2.4.0; github.com/lf-edge/ekuiper.

### Is there a fix for CVE-2025-24979?

Yes. Fixed in 2.4.0. Upgrade github.com/lf-edge/ekuiper/v2 to 2.4.0 or later.

### How do I check if I'm affected by CVE-2025-24979?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/lf-edge/ekuiper/security/advisories/GHSA-pqqc-8v73-9gg2>
- other: <https://github.com/lf-edge/ekuiper>
- other: <https://github.com/lf-edge/ekuiper/releases/tag/v2.4.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-pqqc-8v73-9gg2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6447> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-24979> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-24979>
