{"id":"CVE-2026-68519","aliases":["CVE-2026-68519","GHSA-59fj-m2j6-hcxh","PYSEC-2026-3665"],"related":[],"kind":"vulnerability","state":"published","title":"Glances: `--disable-config-exec` does not cover on-alert action commands (incomplete fix of CVE-2026-53925)","summary":"Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, GlancesActions.run() in glances/actions.py ignores --disable-config-exec for on-alert action commands and invokes secure_popen() with shell operators enabled, allowing configured redirection, command chaining, or pipes to execute when an alert triggers. This issue is fixed in 4.5.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, GlancesActions.run() in glances/actions.py ignores --disable-config-exec for on-alert action commands and invokes secure_popen() with shell operators enabled, allowing configured redirection, command chaining, or pipes to execute when an alert triggers. This issue is fixed in 4.5.6.","source":"cvelist"},{"lang":"en","text":"## Summary\nIn Glances 4.5.5 the `--disable-config-exec` flag was extended (GHSA-3vwc-qwhc-3mj7) to stop `secure_popen()` from\ninterpreting the shell operators `&&`, `|` and `>` in **AMP** command values taken from the configuration file. The\nhardening was not applied to the **on-alert action** command path, which reads its command lines from the same\nconfiguration file. As a result, with `--disable-config-exec` enabled, a configured alert action that contains `>`\n(file redirection), `&&` (chaining) or `|` (pipe) still has those operators interpreted, allowing arbitrary file\nwrite / command chaining at the privilege of the glances process when the alert triggers.\n\n## Affected code\n`glances/actions.py` (Glances 4.5.5, latest):\n```python\nret = secure_popen(cmd_full)        # line 111 — no allow_operators=, defaults to True\n```\nBy contrast the AMP modules were fixed:\n```python\n# glances/amps/default/__init__.py:69\nself.set_result(secure_popen(res, allow_operators=self.allow_operators()).rstrip())\n# glances/amps/systemv/__init__.py:60\nres = secure_popen(self.get('service_cmd'), allow_operators=self.allow_operators())\n```\n\n## PoC (benign)\n`glances.conf`:\n```ini\n[cpu]\nuser_critical=1\nuser_critical_action=echo MARKER > /tmp/poc_marker\n```\nRun `glances --disable-config-exec` and generate CPU load. When the cpu `user` alert reaches CRITICAL, `/tmp/poc_marker`\nis created — i.e. the `>` operator was interpreted despite `--disable-config-exec`. The same `>` in an `[amp_*]`\n`command` value is correctly *not* interpreted.\n\n## Impact\nArbitrary file write (`>`), command chaining (`&&`) and pipe (`|`) from config-defined alert actions, contrary to the\nguarantee of `--disable-config-exec`. Trust boundary = the glances configuration file.\n\n## Suggested fix\nPass `allow_operators=not args.disable_config_exec` from `GlancesActions.run()` into `secure_popen()` (GlancesActions\nalready holds `args`).\n\n## Credit\nReported via responsible-disclosure incomplete-fix measurement study.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Glances es una herramienta de monitoreo de sistemas multiplataforma de código abierto. Antes de la versión 4.5.6, GlancesActions.run() en glances/actions.py ignora --disable-config-exec para los comandos de acción en caso de alerta e invoca secure_popen() con los operadores de shell habilitados, lo que permite que la redirección configurada, el encadenamiento de comandos o las tuberías se ejecuten cuando se activa una alerta. Este problema se soluciona en la versión 4.5.6.","source":"nvd"}],"published":"2026-08-17T17:10:25.951Z","modified":"2026-10-23T16:10:00.313Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 4.5.6","status":"affected"}],"vendor":"nicolargo","product":"glances","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.6"}],"ecosystem":"PyPI","package":"glances","purl":"pkg:pypi/glances","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.6"}],"ecosystem":"PyPI","package":"glances","purl":"pkg:pypi/glances","source":"pysec"}],"references":[{"url":"https://github.com/nicolargo/glances/security/advisories/GHSA-59fj-m2j6-hcxh","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nicolargo/glances/commit/5c07c0d96423e9d5b9de71dd92e3717c66f504bd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nicolargo/glances/releases/tag/v4.5.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nicolargo/glances","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/glances","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-59fj-m2j6-hcxh","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68519","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-17T17:29:59.012Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68519","url":"https://www.cve.org/CVERecord?id=CVE-2026-68519","licence":"CVE Terms of Use","modified":"2026-08-17T17:30:32.566Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-59fj-m2j6-hcxh","url":"https://github.com/advisories/GHSA-59fj-m2j6-hcxh","licence":"CC-BY-4.0","modified":"2026-08-19T12:55:35.401Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68519","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68519","licence":"Public domain","modified":"2026-10-23T16:10:00.313Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3665","url":"https://osv.dev/vulnerability/PYSEC-2026-3665","licence":"CC-BY-4.0","modified":"2026-08-19T12:45:09.793Z"}],"updatedAt":"2026-11-25T22:59:33.373Z","epss":{"score":0.00178,"percentile":0.07681,"date":"2026-12-01T12:00:22.000Z"}}