/

CVE-2026-125399

Severity:

HIGH RISK

(8.0)

OS Command Injection (CWE-78) in Fluxion Target Scanner

CVE-2026-125399

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Root-level command execution

Severity:

HIGH RISK

(8.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Fluxion's target scanner can interpret a crafted Wi-Fi access point name as an operating-system command when it processes the ESSID using eval. An attacker within Wi-Fi range may be able to execute commands as root if an operator scans for or selects the malicious access point.

Affected context

The issue occurs in Fluxion's fluxion.sh target scanner when it decodes access point ESSIDs. The described vulnerable behavior is present in Fluxion versions before 6.39, where ESSID content is evaluated after only single quotes are escaped. Risk depends on an operator scanning for or selecting an attacker-controlled access point.

Exploit preconditions

  • Attack surface: Wi-Fi access point ESSIDs processed by the target scanner
  • Required access: The attacker must be within Wi-Fi range and able to broadcast an access point; no prior Fluxion access is described as necessary
  • Trigger point: An operator scans for or selects the crafted access point
  • Why exploitation is possible: ESSID data reaches eval after incomplete escaping, allowing it to be treated as shell commands

Why this happens

The scanner uses a shell evaluation mechanism on data derived from an access point ESSID. Escaping only single quotes does not safely neutralize all shell metacharacters or command syntax. This is an OS command injection flaw, mapped to CWE-78: Improper Neutralization of Special Elements used in an OS Command, because externally controlled data can influence a command interpreted by the operating system.

Potential impact

  • An attacker may execute arbitrary commands with the privileges of the Fluxion process, described as root
  • The host running Fluxion could be compromised
  • Local data or credentials accessible to the process could be exposed or modified
  • The compromised host could be used to affect other systems reachable from it

General mitigation guidance

Defensive approaches focus on keeping untrusted ESSID data out of shell evaluation paths.

  • Prefer direct process or library APIs over constructing commands for shell interpretation
  • Treat wireless network names as untrusted input and avoid relying on partial escaping
  • Where command invocation is necessary, use fixed commands and safely separated arguments
  • Run scanning tools with the least privileges needed rather than as root
  • Apply access controls and isolation to limit the impact of a compromised scanning process

How teams detect issues like this

  • Use static analysis to flag eval and shell command construction involving external or decoded input
  • Review ESSID handling paths for incomplete escaping, string concatenation, or shell interpretation
  • Add security checks that reject or safely handle untrusted values at process boundaries
  • Use policy enforcement to restrict shell evaluation and unnecessary privileged execution
  • Automated code review tools may help identify these patterns

Sources

SourceLink
github.comgithub.com/FluxionNetwork/fluxion
github.comgithub.com/FluxionNetwork/fluxion/blob/v6.32/fluxion.sh#L1754-L1757
github.comgithub.com/FluxionNetwork/fluxion/commit/be22b0c42f21144a712b62fc072a438a012eb5d7
github.comgithub.com/FluxionNetwork/fluxion/releases/tag/v6.39
vulncheck.comvulncheck.com/advisories/fluxion-before-6.39-os-command-injection-via-crafted-ssid

Frequently asked

questions

An attacker does not need direct network access to the Fluxion host, but must be within Wi-Fi range to broadcast an access point. The described trigger also requires an operator to scan for or select it.

The attacker needs the ability to broadcast a Wi-Fi access point within range. The vulnerability description does not indicate a requirement for prior access to Fluxion.

Avoid passing ESSID data through shell evaluation. Use APIs that pass arguments without invoking a shell, and apply least privilege to the scanning process.

Treat access point names and other externally supplied values as untrusted, avoid shell-based command construction, and include static checks and code review for unsafe evaluation patterns.

Find out what's already
exploitable in your codebase.