GHSA-pqqc-8v73-9gg2: SSRF

Published Sep 9, 2026
·
Updated

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 KUIPERBASICENABLEPRIVATENET=true). Ensure eKuiper's API is protected before enabling this setting.

Reported by Alexey Kosmachev, Bi.Zone

Affected Software

1 affected componentFixes available
go/github.com/lf-edge/ekuiper/v2<2.4.0
2.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/lf-edge/ekuiper/v2 to a version that resolves this vulnerability.

    Fixed in 2.4.0
  2. Upgrade

    Upgrade eKuiper to a version that resolves this vulnerability.

    Fixed in >= 2.4.0
  3. Configuration

    Ensure `basic.enablePrivateNet` is set to `false` (or `KUIPER__BASIC__ENABLEPRIVATENET=false`) so SSRF protection blocks access to private, loopback, link-local, multicast, and unspecified IP addresses (default is `false` in v2.4.0 and later).

    eKuiper basic (kuiper.yaml / environment variable) basic.enablePrivateNet = false
  4. Configuration

    Restrict access to the eKuiper REST API (port 9081) and the CLI so only trusted administrators can create/update services and rules (e.g., via network firewalls/reverse proxies/authentication).

    eKuiper management API (port 9081) management API access policy = restricted
  5. Compensating control

    Use firewall/iptables rules or container network isolation to block outbound requests from eKuiper to private subnets, loopback addresses, and the cloud metadata endpoint `169.254.169.254`.

  6. Operational

    Audit registered external services by periodically reviewing registered external services (e.g., via `GET /services` or `bin/kuiper show services`) and remove/adjust any that target internal addresses to prevent SSRF abuse while mitigating.

Event History

Sep 9, 2026
Advisory Published
via GitHub·05:56 PM
Data Sourced
via GitHub·05:56 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which eKuiper versions are affected?

eKuiper versions prior to v2.4.0 are affected. Version v2.4.0 is identified as the release after the vulnerable behavior.

2

What access does an attacker need to exploit this issue?

The attacker needs access to the eKuiper management API with permission to register external services or create rules. They can then configure an external-service address and trigger it through a service-function query.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203