CVE-2022-42797 Code injection in Xcode

High 7.8 Published Updated

An injection flaw in Xcode allows an app to gain root privileges, requiring developers to upgrade to the latest version.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-42797?

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.

Official 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.

Weakness: CWE-74

Which versions are affected by CVE-2022-42797?

It affects 1 product.

Products include Apple Xcode.

How do I fix CVE-2022-42797?

No fix has been published for CVE-2022-42797 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-42797 being exploited?

There is no known exploitation of CVE-2022-42797 in the wild and no public exploit code.

All Apple Xcode vulnerabilities

Sources

Also known as GHSA-vgvf-4jhr-3w37.

Is CVE-2022-42797 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free