/

CVE-2026-123784

Severity:

HIGH RISK

(7.8)

OS Command Injection (CWE-78) in Fluxbox Theme Loading

CVE-2026-123784

Awaiting Analysis

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Command Execution

Severity:

HIGH RISK

(7.8)

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

Fluxbox can pass crafted style background values to a shell command without escaping them. If an attacker can influence a style that gets loaded, shell metacharacters in those values may allow commands to run with the privileges of the Fluxbox process.

Affected context

The vulnerability occurs in Fluxbox theme reconfiguration, where background-related style values—including pixmap paths, random directories, and gradient texture text—are used to construct an fbsetbg command. It becomes risky when an attacker can provide or alter a style that Fluxbox loads.

Exploit preconditions

  • Attack surface: Theme and style configuration processed by Fluxbox.
  • Required access: The ability to supply or modify a style that the target user loads; this may depend on local permissions or how themes are distributed.
  • Trigger point: Loading or reconfiguring a style with crafted background values.
  • Why exploitation is possible: Values are concatenated into a command that is run through $SHELL -c without adequate shell escaping.

Why this happens

The underlying issue is command construction from style-controlled data followed by execution through a shell. Shell metacharacters in untrusted values can therefore be interpreted as command syntax rather than literal data. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command.

Potential impact

  • An attacker may execute commands with the privileges of the Fluxbox process.
  • The affected user's files or session data could be accessed or altered.
  • Commands could modify the desktop environment or disrupt normal operation.
  • Further compromise may be possible depending on the process's privileges and environment.

General mitigation guidance

Defensive patterns include avoiding shell-based command execution when a direct API or argument-vector process launch is available. Treat theme values as untrusted, validate them against narrowly defined formats, and keep data separate from executable command syntax. Limit the privileges of the desktop process and restrict who can modify or distribute styles that are automatically loaded.

How teams detect issues like this

Review code for style-controlled values flowing into shell commands, especially command strings passed to $SHELL -c or equivalent APIs. Static analysis can flag shell execution and unsanitized data flow into command arguments. Code review and policy checks can require argument-vector APIs, validation at configuration boundaries, and controls on writable theme directories.

Sources

SourceLink
github.comgithub.com/fluxbox/fluxbox
github.comgithub.com/fluxbox/fluxbox/blob/Release-1_3_7/src/RootTheme.cc#L192-L264
github.comgithub.com/fluxbox/fluxbox/commit/270bfbc28573037c9b8458488d193b219e33889f
github.comgithub.com/fluxbox/fluxbox/pull/89
vulncheck.comvulncheck.com/advisories/fluxbox-through-1.3.7-os-command-injection-via-style-background-values

Frequently asked

questions

The described issue is triggered when Fluxbox loads a crafted style. Remote exploitation is not established by the description; it would depend on whether an attacker can deliver or modify a style through a remote-accessible path.

An attacker needs a way to make Fluxbox load a style containing crafted background values. The exact access required depends on local permissions and theme distribution practices.

Avoid invoking a shell with command strings built from style data. Prefer direct process execution with separate arguments, alongside strict validation of accepted values.

Treat configuration and theme content as untrusted, restrict who can change files that applications load, and use static analysis and code review to identify shell execution paths fed by external data.

Find out what's already
exploitable in your codebase.