{"answers":{"affected":"3 open source packages ship an affected version, including inventree. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-2111 in the wild and no public exploit code.","fix":"Upgrade inventree to 0.7.2 or later.","what":"CVE-2022-2111 is a critical vulnerability in inventree/inventree, published on 17 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-2111 and fix it if it is affected.\n\nWhat it is: CVE-2022-2111 is a critical vulnerability in inventree/inventree, published on 17 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-2111 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- inventree (PyPI): affected all versions; fixed in 0.7.2\n- inventree (PyPI): affected all versions; fixed in 0.7.2\n- inventree (PyPI): affected all versions; fixed in 0.7.2\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-2111/ (Markdown: https://insights.sbomify.com/CVE-2022-2111/index.md)","id":"CVE-2022-2111","markdown":"https://insights.sbomify.com/CVE-2022-2111/index.md","name":"CVE-2022-2111","record":{"aliases":["GHSA-fr2w-mp56-g4xp","PYSEC-2026-825"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"InvenTree inventory system","requires_auth":"low_privilege","summary":"Attackers can upload dangerous file types to the InvenTree inventory system, potentially leading to remote code execution.","user_interaction":"required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"inventree","vendor":"inventree_project"}],"cvss":{"score":9,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"Unrestricted Upload of File with Dangerous Type in GitHub repository inventree/inventree prior to 0.7.2.","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":"Unrestricted Upload of File with Dangerous Type in inventree/inventree","id":"CVE-2022-2111","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"file_upload","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"Improper Neutralization of Formula Elements in a CSV File in inventree/inventree","id":"CVE-2022-2112"},"packages":[{"ecosystem":"PyPI","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"inventree","purl":null,"source":"GHSA-fr2w-mp56-g4xp"},{"ecosystem":"PyPI","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"inventree","purl":"pkg:pypi/inventree","source":"GHSA-fr2w-mp56-g4xp"},{"ecosystem":"PyPI","fixed":["0.7.2"],"introduced":["0"],"last_affected":[],"package":"inventree","purl":"pkg:pypi/inventree","source":"PYSEC-2026-825"}],"prev":{"headline":"Wbcom Designs – BuddyPress Group Reviews \u003c= 2.8.3 - Unauthorized AJAX Actions due to Nonce Bypass","id":"CVE-2022-2108"},"products":["inventree/inventree"],"published":"2022-06-17","related":[{"cvss_score":9,"headline":"Improper Neutralization of Formula Elements in a CSV File in inventree/inventree","id":"CVE-2022-2112","kev_date_added":null,"published":"2022-06-17"},{"cvss_score":8.4,"headline":"Cross-site Scripting (XSS) - Stored in inventree/inventree","id":"CVE-2022-2113","kev_date_added":null,"published":"2022-06-17"},{"cvss_score":8.3,"headline":"InvenTree has Arbitrary API Token Creation","id":"CVE-2026-35478","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":8.2,"headline":"Cross-site Scripting (XSS) - Stored in inventree/inventree","id":"CVE-2022-3355","kev_date_added":null,"published":"2022-09-29"},{"cvss_score":7.7,"headline":"InvenTree Vulnerable to ORM Filter Injection","id":"CVE-2026-33530","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":7.3,"headline":"Stored Cross-site Scripting Vulnerability in Markdown Editor","id":"CVE-2024-47610","kev_date_added":null,"published":"2024-10-07"}],"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-03","vendors":["inventree"]},"summary":"Attackers can upload dangerous file types to the InvenTree inventory system, potentially leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2022-2111/"}