{"answers":{"affected":"9 open source packages ship an affected version, including ipython. It affects 3 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-21699 exists.","fix":"Upgrade ipython to a fixed version for your release line: 6.0.0rc1, 7.16.3, 7.31.1 or 8.0.1.","what":"CVE-2022-21699 is a high-severity vulnerability in Debian Debian Linux, published on 19 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-21699 and fix it if it is affected.\n\nWhat it is: CVE-2022-21699 is a high-severity vulnerability in Debian Debian Linux, published on 19 Jan 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-21699 exists.\n\nAffected packages and fixed versions:\n- ipython (PyPI): affected all versions; fixed in 6.0.0rc1, 7.16.3, 7.31.1, 8.0.1\n- ipython (PyPI): affected all versions; fixed in 5.11\n- ipython (PyPI): affected all versions; fixed in 5.11\n- ipython (PyPI): affected from 6.0.0; fixed in 7.16.3\n- ipython (PyPI): affected from 6.0.0; fixed in 7.16.3\n- ipython (PyPI): affected from 7.17.0; fixed in 7.31.1\n- ipython (PyPI): affected from 7.17.0; fixed in 7.31.1\n- ipython (PyPI): affected from 8.0.0; fixed in 8.0.1\n- ipython (PyPI): affected from 8.0.0; fixed in 8.0.1\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-2022-21699/ (Markdown: https://insights.sbomify.com/CVE-2022-21699/index.md)","id":"CVE-2022-21699","markdown":"https://insights.sbomify.com/CVE-2022-21699/index.md","name":"CVE-2022-21699","record":{"aliases":["AZL-109526","DEBIAN-CVE-2022-21699","DLA-2896-1","DSA-5065-1","GHSA-pq7m-3gw7-gq5x","MGASA-2023-0058","PYSEC-2022-12","UBUNTU-CVE-2022-21699","openSUSE-SU-2022:10043-1","openSUSE-SU-2024:11763-1","openSUSE-SU-2024:11995-1","openSUSE-SU-2025:14718-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"IPython shell","requires_auth":"low_privilege","summary":"An attacker can execute arbitrary code as another user on the same machine due to improper management of cross-user temporary files in IPython.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"ipython","vendor":"ipython"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-279","name":"Incorrect Execution-Assigned Permissions"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"description":"IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language. Affected versions are subject to an arbitrary code execution vulnerability achieved by not properly managing cross user temporary files. This vulnerability allows one user to run code as another on the same machine. All users are advised to upgrade.","ecosystems":["PyPI","SUSE:Package Hub 15 SP3","openSUSE:Leap 15.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Execution with Unnecessary Privileges in ipython","id":"CVE-2022-21699","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"privilege_escalation","year":"2022"},"n_packages":14,"n_references":6,"next":{"headline":"Memory leak in micronaut-core","id":"CVE-2022-21700"},"packages":[{"ecosystem":"PyPI","fixed":["6.0.0rc1","7.16.3","7.31.1","8.0.1"],"introduced":["0","6.0.0","7.17.0","8.0.0"],"last_affected":[],"package":"ipython","purl":"pkg:pypi/ipython","source":"PYSEC-2022-12"},{"ecosystem":"PyPI","fixed":["5.11"],"introduced":["0"],"last_affected":[],"package":"ipython","purl":null,"source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["5.11"],"introduced":["0"],"last_affected":[],"package":"ipython","purl":"pkg:pypi/ipython","source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["7.16.3"],"introduced":["6.0.0"],"last_affected":[],"package":"ipython","purl":null,"source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["7.16.3"],"introduced":["6.0.0"],"last_affected":[],"package":"ipython","purl":"pkg:pypi/ipython","source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["7.31.1"],"introduced":["7.17.0"],"last_affected":[],"package":"ipython","purl":null,"source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["7.31.1"],"introduced":["7.17.0"],"last_affected":[],"package":"ipython","purl":"pkg:pypi/ipython","source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["8.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"ipython","purl":null,"source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"PyPI","fixed":["8.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"ipython","purl":"pkg:pypi/ipython","source":"GHSA-pq7m-3gw7-gq5x"},{"ecosystem":"SUSE:Package Hub 15 SP3","fixed":["7.13.0-bp153.2.6.1"],"introduced":["0"],"last_affected":[],"package":"python-ipython","purl":"pkg:rpm/suse/python-ipython\u0026distro=SUSE%20Package%20Hub%2015%20SP3","source":"openSUSE-SU-2022:10043-1"},{"ecosystem":"SUSE:Package Hub 15 SP3","fixed":["7.13.0-bp153.2.6.6"],"introduced":["0"],"last_affected":[],"package":"python-ipython-test","purl":"pkg:rpm/suse/python-ipython-test\u0026distro=SUSE%20Package%20Hub%2015%20SP3","source":"openSUSE-SU-2022:10043-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["7.13.0-bp153.2.6.1"],"introduced":["0"],"last_affected":[],"package":"python-ipython","purl":"pkg:rpm/opensuse/python-ipython\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:10043-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["7.13.0-bp153.2.6.6"],"introduced":["0"],"last_affected":[],"package":"python-ipython-test","purl":"pkg:rpm/opensuse/python-ipython-test\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:10043-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.31.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-ipython","purl":"pkg:rpm/opensuse/python-ipython\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14718-1"}],"prev":{"headline":"Uncontrolled Resource Consumption in promhttp","id":"CVE-2022-21698"},"products":["ipython"],"published":"2022-01-19","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["ipython"]},"summary":"An attacker can execute arbitrary code as another user on the same machine due to improper management of cross-user temporary files in IPython.","url":"https://insights.sbomify.com/CVE-2022-21699/"}