8.8high
Arbitrary command execution on Windows in qutebrowser
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.50% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vw27-fwjf-5qxmPYSEC-2021-382
Description
qutebrowser is an open source keyboard-focused browser with a minimal GUI. Starting with qutebrowser v1.7.0, the Windows installer for qutebrowser registers a `qutebrowserurl:` URL handler. With certain applications, opening a specially crafted `qutebrowserurl:...` URL can lead to execution of qutebrowser commands, which in turn allows arbitrary code execution via commands such as `:spawn` or `:debug-pyeval`. Only Windows installs where qutebrowser is registered as URL handler are affected. The issue has been fixed in qutebrowser v2.4.0. The fix also adds additional hardening for potential similar issues on Linux (by adding the new --untrusted-args flag to the .desktop file), though no such vulnerabilities are known.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| qutebrowser qutebrowser | >= 1.7.0, < 2.4.0, up to 1.7.0, from 2.0.0 before 2.4.0 | CVE List, NVD |
| qutebrowser (PyPI) | from 1.7.0 before 2.4.0, before 8f46ba3f6dc7b18375f7aa63c48a1fe461190430, before 1.8.0, from 2.0.0 before 2.4.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
qutebrowser is an open source keyboard-focused browser with a minimal GUI. Starting with qutebrowser v1.7.0, the Windows installer for qutebrowser registers a `qutebrowserurl:` URL handler. With certain applications, opening a specially crafted `qutebrowserurl:...` URL can lead to execution of qutebrowser commands, which in turn allows arbitrary code execution via commands such as `:spawn` or `:debug-pyeval`. Only Windows installs where qutebrowser is registered as URL handler are affected. The issue has been fixed in qutebrowser v2.4.0. The fix also adds additional hardening for potential similar issues on Linux (by adding the new --untrusted-args flag to the .desktop file), though no such vulnerabilities are known.
GitHub Advisory Database
Impact
Starting with qutebrowser v1.7.0, the Windows installer for qutebrowser registers it as a handler for certain URL schemes. With some applications such as Outlook Desktop, opening a specially crafted URL can lead to argument injection, allowing execution of qutebrowser commands, which in turn allows arbitrary code execution via commands such as :spawn or :debug-pyeval.
Only Windows installs where qutebrowser is registered as URL handler are affected. It does not have to be set as default browser for the exploit to work.
Patches
The issue has been fixed in qutebrowser v2.4.0 in commit 8f46ba3f6dc7b18375f7aa63c48a1fe461190430.
The fix also adds additional hardening for potential similar issues on Linux (by adding the new --untrusted-args flag to the .desktop file), though no such vulnerabilities are known.
Backported patches for older versions are available, but no further releases are planned:
- v1.7.x: d1ceaab
- v1.8.x: ca7155d
- v1.9.x: 157d871
- v1.10.x: 94a6125
- v1.11.x: 10acfbb
- v1.12.x: 363a18f
- v1.13.x: 410f262
- v1.14.x: e4f4d93
- v2.0.x: 15a1654
- v2.1.x: 509ddf2
- v2.2.x: 03dcba5
- v2.3.x: 00a694c
(commits are referring to qutebrowser/qutebrowser on GitHub)
Workarounds
Remove qutebrowser from the default browser settings entirely, so that it does not handle any kind of URLs. Make sure to remove all handlers, including an (accidental) qutebrowserURL handler, e.g. using NirSoft URLProtocolView.
Timeline
2021-10-15: Issue reported via security@qutebrowser.org by Ping Fan (Zetta) Ke of Valkyrie-X Security Research Group (VXRL) 2021-10-15: Issue confirmed by @The-Compiler (lead developer), author of installer (@bitraid) contacted for help/review 2021-10-15: CVE assigned by GitHub 2021-10-15 to 2021-10-17: Fix developed 2021-10-17: Additional core developer (@toofar) contacted for help/review 2021-10-21: v2.4.0 released containing the fix 2021-10-21: Advisory and fix published
References
See the commit message for additional information and references to various similar issues in other projects.
Acknowledgements
Thanks to Ping Fan (Zetta) Ke of Valkyrie-X Security Research Group (VXRL/@vxresearch) for finding and responsibly disclosing this issue.
Contact
If you have any questions or comments about this advisory, please email security@qutebrowser.org.
NVD (es)
qutebrowser es un navegador de código abierto centrado en el teclado con una Interfaz de Usuario Gráfica mínima. A partir de qutebrowser versión v1.7.0, el instalador de Windows para qutebrowser registra un manejador de URL "qutebrowserurl:". Con determinadas aplicaciones, la apertura de una URL "qutebrowserurl:..." especialmente diseñada puede conllevar a una ejecución de comandos de qutebrowser, lo que a su vez permite una ejecución de código arbitrario por medio de comandos como ":spawn" o ":debug-pyeval". Sólo están afectadas las instalaciones de Windows en las que qutebrowser está registrado como manejador de URL. El problema ha sido corregido en qutebrowser versión v2.4.0. La corrección también añade un refuerzo adicional para posibles problemas similares en Linux (al añadir la nueva flag --untrusted-args al archivo .desktop), aunque no se conoce ninguna vulnerabilidad de este tipo
References
| https://github.com/qutebrowser/qutebrowser/security/advisories/GHSA-vw27-fwjf-5qxm | advisory, third-party-advisory, web | |
| https://github.com/qutebrowser/qutebrowser/commit/8f46ba3f6dc7b18375f7aa63c48a1fe461190430 | fix, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41146 | advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/qutebrowser/PYSEC-2021-382.yaml | web | |
| https://github.com/qutebrowser/qutebrowser | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41146 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vw27-fwjf-5qxm changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41146 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-382 changed 2023-11-08 | CC-BY-4.0 |