CVE-2024-35222 iFrames Bypass Origin Checks for Tauri API Access Control

Medium 5.9 Published Updated

Attackers can bypass origin checks to invoke privileged Tauri IPC commands via malicious iframes, potentially executing arbitrary actions or modifying data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-35222?

CVE-2024-35222 is a medium-severity vulnerability in tauri-apps tauri, published on 23 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Tauri is a framework for building binaries for all major desktop platforms. Remote origin iFrames in Tauri applications can access the Tauri IPC endpoints without being explicitly allowed in the `dangerousRemoteDomainIpcAccess` in v1 and in the `capabilities` in v2. Valid commands with potentially unwanted consequences ("delete project", "transfer credits", etc.) could be invoked by an attacker that controls the content of an iframe running inside a Tauri app. This vulnerability has been patched in versions 1.6.7 and 2.0.0-beta.19.

Weakness: CWE-284

Which versions are affected by CVE-2024-35222?

4 open source packages ship an affected version, including tauri.

PackageAffectedFixed in
tauri crates.ioAll versions1.6.7
tauri crates.ioAll versions1.6.7
tauri crates.ioFrom 2.0.0-beta.02.0.0-beta.20
tauri crates.ioFrom 2.0.0-beta.02.0.0-beta.20

How do I fix CVE-2024-35222?

Upgrade tauri to a fixed version for your release line: 1.6.7 or 2.0.0-beta.20.

Is CVE-2024-35222 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35222 exists.

Sources

Also known as GHSA-57fm-592m-34r7.

Is CVE-2024-35222 in your software?

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

Check your SBOMs for free