Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-115319 Overview
CVE-2026-115319 affects the fzf command-line fuzzy finder from version 0.36.0 through 0.74.5. The vulnerability resides in the maskActionContents function, which performs quadratic string concatenation when processing action contents. Local attackers can exploit this by sending roughly 1 MB POST bodies to the unauthenticated --listen HTTP server on localhost. Each request blocks the single-threaded server for approximately 30 seconds, producing a denial-of-service condition. The issue is classified under [CWE-407] Inefficient Algorithmic Complexity.
Critical Impact
Local attackers can stall the fzf --listen HTTP server for about 30 seconds per 1 MB request, repeatedly denying service to the fuzzy finder process.
Affected Products
- fzf version 0.36.0
- fzf versions 0.36.1 through 0.74.4
- fzf version 0.74.5
Discovery Timeline
- 2026-10-22 - CVE-2026-115319 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-115319
Vulnerability Analysis
The flaw is an algorithmic complexity issue in the maskActionContents function within src/options.go. The function repeatedly concatenates substrings using Go's += operator on a plain string variable. Because Go strings are immutable, every concatenation allocates a new backing buffer and copies all previously accumulated bytes, producing O(n²) behavior. When fzf is launched with the --listen flag, it exposes an unauthenticated HTTP server on localhost that accepts action payloads. A local user with the ability to reach the listening port can submit a crafted 1 MB request that forces the parser through the quadratic path. The server runs single-threaded, so the stalled request blocks all other operations for about 30 seconds. Repeating the request yields a sustained denial of service against the fuzzy finder instance.
Root Cause
The root cause is the use of naive string concatenation inside a loop that processes attacker-controlled input of unbounded size. Each iteration appends a slice of the remaining action string onto the accumulator, causing memory copies that scale with the square of the input length.
Attack Vector
Exploitation requires local access to the host where fzf --listen is running and the ability to send HTTP POST requests to the listening port. The server performs no authentication on incoming payloads, so any local user or process can submit the oversized action body.
// Security patch in src/options.go - commit b412a45
// Avoid O(n^2) string concatenation in maskActionContents
func maskActionContents(action string) string {
- masked := ""
+ var sb strings.Builder
Loop:
for len(action) > 0 {
loc := argActionRegexp.FindStringIndex(action)
if loc == nil {
- masked += action
+ sb.WriteString(action)
break
}
- masked += action[:loc[1]]
+ sb.WriteString(action[:loc[1]])
action = action[loc[1]:]
if len(action) == 0 {
break
Source: GitHub fzf Commit b412a45
Detection Methods for CVE-2026-115319
Indicators of Compromise
- Repeated local HTTP POST requests to the fzf --listen port with request bodies near 1 MB in size.
- fzf processes consuming high CPU for roughly 30-second intervals while unresponsive to interactive input.
- Unexpected delays or stalls in shell integrations, editor plugins, or scripts that rely on fzf --listen.
Detection Strategies
- Inventory hosts running fzf versions between 0.36.0 and 0.74.5 and flag any instances launched with the --listen flag.
- Monitor local network sockets for unexpected processes connecting to the fzf listening port.
- Correlate CPU spikes on the fzf process with inbound HTTP traffic on its listener to identify abuse patterns.
Monitoring Recommendations
- Log process launches that include the --listen argument and alert on long-lived instances.
- Track per-process CPU time and request latency for the fzf listener and alert when single requests exceed several seconds.
- Review audit logs for local users or scripts generating large POST bodies to loopback ports.
How to Mitigate CVE-2026-115319
Immediate Actions Required
- Upgrade fzf to the fixed release that includes commit b412a45 replacing concatenation with strings.Builder.
- Stop running fzf --listen on multi-user systems until the patched version is deployed.
- Restrict access to the listening port using host firewall rules or socket permissions.
Patch Information
The fix is in commit b412a45, which rewrites maskActionContents to use a strings.Builder, eliminating the quadratic allocation path. Users should upgrade to the first fzf release that incorporates this commit. See the VulnCheck Advisory on fzf for additional details.
Workarounds
- Avoid launching fzf with the --listen option on hosts shared by untrusted local users.
- Bind the listener to a port protected by local firewall rules that restrict access to known clients.
- Terminate long-running fzf --listen processes when they are not actively needed.
# Verify installed fzf version and locate --listen usage
fzf --version
ps -eo pid,cmd | grep -E 'fzf .*--listen' | grep -v grep
# Example host firewall rule to restrict access to the fzf listener (Linux, iptables)
iptables -A INPUT -p tcp --dport <FZF_LISTEN_PORT> ! -s 127.0.0.1 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

