Skip to content
OpenAdvisories
High · 7.8 CVE-2026-53925 EUVD-2026-39518GHSA-3vwc-qwhc-3mj7PYSEC-2026-2494

Glances: Arbitrary file write and command execution via `secure_popen` redirection and chaining operators in AMP command configuration

Published Jun 25, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

Description

Glances is an open-source system cross-platform monitoring tool. From 4.0.8 until 4.5.5, the secure_popen() function in glances/secure.py interprets > (file redirection), | (pipe), and && (command chaining) operators in command strings. These operators are applied without any validation on the target file path, piped command, or chained command. When Application Monitoring Process (AMP) modules load their command or service_cmd configuration values from glances.conf, those values are passed directly to secure_popen() with no sanitization. This allows an attacker who can modify the Glances configuration file to write arbitrary content to arbitrary filesystem paths (via >), chain arbitrary commands (via &&), or pipe command output to arbitrary programs (via |). This vulnerability is fixed in 4.5.5.

Affected products

VendorProductAffectedFixed
nicolargo glances >= 4.0.8, < 4.5.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glances 4.5.5+dfsg-1 —
Debian 13 glances No fix yet —
Debian 12 glances No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS glances No fix yet —
Ubuntu 25.10 glances No fix yet —
Ubuntu 24.04 LTS glances No fix yet —
Ubuntu 22.04 LTS glances No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS glances No fix yet —
Ubuntu Pro 18.04 LTS glances No fix yet —
Ubuntu Pro 16.04 LTS glances No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Glances 4.5.5-1.1 openSUSE-SU-2026:11122-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI glances >= 4.0.8, < 4.5.5 4.5.5 GHSA-3vwc-qwhc-3mj7

Advisories 1

References