{"answers":{"affected":"3 open source packages ship an affected version, including qutebrowser. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41146 in the wild and no public exploit code.","fix":"Upgrade qutebrowser to a fixed version for your release line: 1.8.0 or 2.4.0.","what":"CVE-2021-41146 is a high-severity command injection vulnerability in qutebrowser, published on 21 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-41146 and fix it if it is affected.\n\nWhat it is: CVE-2021-41146 is a high-severity command injection vulnerability in qutebrowser, published on 21 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-41146 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- qutebrowser (PyPI): affected all versions; fixed in 1.8.0, 2.4.0\n- qutebrowser (PyPI): affected from 1.7.0; fixed in 2.4.0\n- qutebrowser (PyPI): affected from 1.7.0; fixed in 2.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41146/ (Markdown: https://insights.sbomify.com/CVE-2021-41146/index.md)","id":"CVE-2021-41146","markdown":"https://insights.sbomify.com/CVE-2021-41146/index.md","name":"CVE-2021-41146","record":{"aliases":["GHSA-vw27-fwjf-5qxm","PYSEC-2021-382"],"analysis":{"component_type":"browser","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"qutebrowser","requires_auth":"none","summary":"Attackers can execute arbitrary code on Windows by tricking users into opening a crafted URL if qutebrowser is registered as the default handler.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"qutebrowser","vendor":"qutebrowser"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-641","name":"Improper Restriction of Names for Files and Other Resources"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary command execution on Windows in qutebrowser","id":"CVE-2021-41146","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"SQL injection in the planning edition panel","id":"CVE-2021-41147"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.0","2.4.0"],"introduced":["0","2.0.0"],"last_affected":[],"package":"qutebrowser","purl":"pkg:pypi/qutebrowser","source":"PYSEC-2021-382"},{"ecosystem":"PyPI","fixed":["2.4.0"],"introduced":["1.7.0"],"last_affected":[],"package":"qutebrowser","purl":null,"source":"GHSA-vw27-fwjf-5qxm"},{"ecosystem":"PyPI","fixed":["2.4.0"],"introduced":["1.7.0"],"last_affected":[],"package":"qutebrowser","purl":"pkg:pypi/qutebrowser","source":"GHSA-vw27-fwjf-5qxm"}],"prev":{"headline":"FreeSWITCH susceptible to Denial of Service via SIP flooding","id":"CVE-2021-41145"},"products":["qutebrowser"],"published":"2021-10-21","related":[{"cvss_score":9.3,"headline":"Qutebrowser CSRF Vulnerability","id":"CVE-2018-10895","kev_date_added":null,"published":"2018-07-12"},{"cvss_score":6.1,"headline":"Qutebrowser XSS Vulnerability","id":"CVE-2018-1000559","kev_date_added":null,"published":"2018-06-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["qutebrowser"]},"summary":"Attackers can execute arbitrary code on Windows by tricking users into opening a crafted URL if qutebrowser is registered as the default handler.","url":"https://insights.sbomify.com/CVE-2021-41146/"}