CVE-2021-31155 Permissions bypass in pleaser

High 7.8 Published Updated

A local attacker can gain full root privileges by exploiting improper umask handling in the please tool.

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

What is CVE-2021-31155?

CVE-2021-31155 is a high-severity vulnerability in n/a, published on 27 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Failure to normalize the umask in please before 0.4 allows a local attacker to gain full root privileges if they are allowed to execute at least one command.

Weakness: CWE-732

Which versions are affected by CVE-2021-31155?

3 open source packages ship an affected version, including pleaser. It affects 1 product.

PackageAffectedFixed in
pleaser crates.ioAll versions0.4.0
pleaser crates.ioAll versions0.4.0
pleaser crates.ioFrom 0.0.0-00.4.0

Products include Umask Project Umask.

How do I fix CVE-2021-31155?

Upgrade pleaser to 0.4.0 or later.

Is CVE-2021-31155 being exploited?

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

Sources

Also known as DEBIAN-CVE-2021-31155, GHSA-vc5p-j8vw-mc6x, RUSTSEC-2021-0101.

Is CVE-2021-31155 in your software?

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

Check your SBOMs for free