GHSA-f2wx-xjfw-xjv6 topgrade Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all

Not scored Published

A race condition in the remove_dir_all function allows attackers to manipulate file system operations, potentially leading to privilege escalation or data modification.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is GHSA-f2wx-xjfw-xjv6?

GHSA-f2wx-xjfw-xjv6 is a vulnerability in topgrade, published on 17 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Summary

https://github.com/advisories/GHSA-mc8h-8q98-g5hr https://github.com/XAMPPRocky/remove_dir_all/commit/7247a8b6ee59fc99bbb69ca6b3ca4bfd8c809ead

tempfile v0.4.26 ships with affected remove_dir_all v0.5.3 and so blocks my deployment of v12 to openSUSE distribution because it imposes a clean cargo audit

Updating tempfile is warranted

Which versions are affected by GHSA-f2wx-xjfw-xjv6?

2 open source packages ship an affected version, including topgrade.

PackageAffectedFixed in
topgrade crates.ioAll versions12.0.1
topgrade crates.ioAll versions12.0.1

How do I fix GHSA-f2wx-xjfw-xjv6?

Upgrade topgrade to 12.0.1 or later.

Is GHSA-f2wx-xjfw-xjv6 being exploited?

There is no known exploitation of GHSA-f2wx-xjfw-xjv6 in the wild and no public exploit code.

Sources

Is GHSA-f2wx-xjfw-xjv6 in your software?

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

Check your SBOMs for free