{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-42797 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-42797 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-42797 is a high-severity code injection vulnerability in Apple Xcode, published on 27 Feb 2023. 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-42797 and fix it if it is affected.\n\nWhat it is: CVE-2022-42797 is a high-severity code injection vulnerability in Apple Xcode, published on 27 Feb 2023. 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: There is no known exploitation of CVE-2022-42797 in the wild and no public exploit code.\n\nAffected product: Apple Xcode. 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-42797/ (Markdown: https://insights.sbomify.com/CVE-2022-42797/index.md)","id":"CVE-2022-42797","markdown":"https://insights.sbomify.com/CVE-2022-42797/index.md","name":"CVE-2022-42797","record":{"aliases":["GHSA-vgvf-4jhr-3w37"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Xcode IDE","requires_auth":"none","summary":"An injection flaw in Xcode allows an app to gain root privileges, requiring developers to upgrade to the latest version.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apple","cpe":[{"product":"xcode","vendor":"apple"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"An injection issue was addressed with improved input validation. This issue is fixed in Xcode 14.1. An app may be able to gain root privileges.","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":"Code injection in Xcode","id":"CVE-2022-42797","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:xcode","products":["apple:xcode"],"type":"code_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Information disclosure in macOS","id":"CVE-2022-42798"},"packages":[],"prev":{"headline":"Privilege escalation in macOS","id":"CVE-2022-42796"},"products":["Xcode"],"published":"2023-02-27","related":[{"cvss_score":8.1,"headline":"Git Link Following","id":"CVE-2025-48384","kev_date_added":"2025-08-25","published":"2025-07-08"},{"cvss_score":9.8,"headline":"JGit Improper Input Validation vulnerability","id":"CVE-2014-9390","kev_date_added":null,"published":"2020-02-12"},{"cvss_score":9.8,"headline":"Deserialization of untrusted data in FasterXML jackson-databind","id":"CVE-2019-14379","kev_date_added":null,"published":"2019-07-29"},{"cvss_score":9.8,"headline":"An issue was discovered in certain Apple products.","id":"CVE-2018-4164","kev_date_added":null,"published":"2018-04-03"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2016-0746","kev_date_added":null,"published":"2016-02-15"},{"cvss_score":9.3,"headline":"Missing authorization in n/a","id":"CVE-2004-2687","kev_date_added":null,"published":"2007-09-23"},{"cvss_score":8.8,"headline":"This issue was addressed by enforcing library validation on the affected binaries.","id":"CVE-2026-86948","kev_date_added":null,"published":"2026-10-20"}],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-11","vendors":["Apple"]},"summary":"An injection flaw in Xcode allows an app to gain root privileges, requiring developers to upgrade to the latest version.","url":"https://insights.sbomify.com/CVE-2022-42797/"}