Skip to content

Permissions bypass in pleaser

High severity GitHub Reviewed Published Aug 25, 2021 to the GitHub Advisory Database • Updated Apr 3, 2023

Package

cargo pleaser (Rust)

Affected versions

< 0.4.0

Patched versions

0.4.0

Description

pleaseedit in pleaser before 0.4.0 uses predictable temporary filenames in /tmp and the target directory. This allows a local attacker to gain full root privileges by staging a symlink attack.

References

Published by the National Vulnerability Database May 27, 2021
Reviewed Jun 1, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Apr 3, 2023

Severity

High
7.8
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-31154

GHSA ID

GHSA-pp74-39w2-v4w9

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.