# CVE-2026-53925: Glances: Arbitrary file write and command execution via `secure_popen` redirection and chaining operators in AMP command configuration

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:59:01.000Z
- Modified: 2026-10-25T22:10:00.150Z
- Also known as: GHSA-3vwc-qwhc-3mj7, PYSEC-2026-2494
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- nicolargo glances: >= 4.0.8, < 4.5.5
- glances (PyPI): from 4.0.8 before 4.5.5

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nicolargo/glances/security/advisories/GHSA-3vwc-qwhc-3mj7> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53925> (advisory)
- <https://github.com/advisories/GHSA-3vwc-qwhc-3mj7> (advisory)
- <https://github.com/nicolargo/glances> (package)
- <https://github.com/nicolargo/glances/releases/tag/v4.5.5> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/glances/PYSEC-2026-2494.yaml> (web)
- <https://pypi.org/project/glances> (package, web)

## Sources

- CVE List: [CVE-2026-53925](https://www.cve.org/CVERecord?id=CVE-2026-53925), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-3vwc-qwhc-3mj7](https://github.com/advisories/GHSA-3vwc-qwhc-3mj7), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-53925](https://nvd.nist.gov/vuln/detail/CVE-2026-53925), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2494](https://osv.dev/vulnerability/PYSEC-2026-2494), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-53925 · Whole record: https://cve.day/CVE-2026-53925.json · Rebuilt by cve.day 2026-11-25T22:59:26.413Z
