{"answers":{"affected":"It affects 7 products.","exploited":"There is no known exploitation of CVE-2022-21840 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-21840 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-21840 is a high-severity code injection vulnerability in Microsoft Excel, published on 11 Jan 2022. 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-2022-21840 and fix it if it is affected.\n\nWhat it is: CVE-2022-21840 is a high-severity code injection vulnerability in Microsoft Excel, published on 11 Jan 2022. 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-2022-21840 in the wild and no public exploit code.\n\nAffected product: Microsoft Excel. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-21840/ (Markdown: https://insights.sbomify.com/CVE-2022-21840/index.md)","id":"CVE-2022-21840","markdown":"https://insights.sbomify.com/CVE-2022-21840/index.md","name":"CVE-2022-21840","record":{"aliases":["GHSA-rq4v-w4c3-3h29"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Microsoft Office suite","requires_auth":"none","summary":"Attackers can execute arbitrary code by exploiting a vulnerability in Microsoft Office applications, requiring user interaction to open a malicious file.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"excel","vendor":"microsoft"},{"product":"office","vendor":"microsoft"},{"product":"office_long_term_servicing_channel","vendor":"microsoft"},{"product":"office_online_server","vendor":"microsoft"},{"product":"office_web_apps","vendor":"microsoft"},{"product":"sharepoint_enterprise_server","vendor":"microsoft"},{"product":"sharepoint_server","vendor":"microsoft"}],"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/E:U/RL:O/RC:C","version":"3.1"},"cwes":[],"description":"Microsoft Office Remote Code Execution Vulnerability","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Microsoft Office Remote Code Execution Vulnerability","id":"CVE-2022-21840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"microsoft:excel","products":["microsoft:excel","microsoft:office","microsoft:office_long_term_servicing_channel","microsoft:office_online_server","microsoft:office_web_apps","microsoft:sharepoint_enterprise_server","microsoft:sharepoint_server"],"type":"code_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Microsoft Excel Remote Code Execution Vulnerability","id":"CVE-2022-21841"},"packages":[],"prev":{"headline":"Windows Event Tracing Discretionary Access Control List Denial of Service Vulnerability","id":"CVE-2022-21839"},"products":["Microsoft 365 Apps for Enterprise","Microsoft Excel 2013 Service Pack 1","Microsoft Excel 2016","Microsoft Office 2013 Service Pack 1","Microsoft Office 2016","Microsoft Office 2019","Microsoft Office 2019 for Mac","Microsoft Office LTSC 2021","Microsoft Office LTSC for Mac 2021","Microsoft Office Online Server","Microsoft Office Web Apps Server 2013 Service Pack 1","Microsoft SharePoint Enterprise Server 2013 Service Pack 1","Microsoft SharePoint Enterprise Server 2016","Microsoft SharePoint Foundation 2013 Service Pack 1","Microsoft SharePoint Server 2019","Microsoft SharePoint Server Subscription Edition","SharePoint Server Subscription Edition Language Pack"],"published":"2022-01-11","related":[{"cvss_score":8.8,"headline":"Microsoft Excel Remote Code Execution","id":"CVE-2019-1297","kev_date_added":"2022-03-03","published":"2019-09-11"},{"cvss_score":8.8,"headline":"Microsoft Office Remote Code Execution","id":"CVE-2009-0238","kev_date_added":"2026-04-14","published":"2009-02-25"},{"cvss_score":7.8,"headline":"Microsoft Office Security Feature Bypass","id":"CVE-2016-7262","kev_date_added":"2022-03-03","published":"2016-12-20"},{"cvss_score":7.8,"headline":"Microsoft Excel Featheader Record Memory Corruption","id":"CVE-2009-3129","kev_date_added":"2022-03-03","published":"2009-11-11"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2008-0081","kev_date_added":null,"published":"2008-01-16"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2015-6040","kev_date_added":null,"published":"2015-12-09"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2015-6122","kev_date_added":null,"published":"2015-12-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-01-02","vendors":["Microsoft"]},"summary":"Attackers can execute arbitrary code by exploiting a vulnerability in Microsoft Office applications, requiring user interaction to open a malicious file.","url":"https://insights.sbomify.com/CVE-2022-21840/"}