Privilege Escalation Affecting pleaser package, versions <0.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-PLEASER-1584119
  • published11 Sept 2021
  • disclosed27 May 2021
  • creditUnknown

Introduced: 27 May 2021

CVE-2021-31154  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade pleaser to version 0.4.0 or higher.

Overview

pleaser is a polite regex-first sudo alternative.

Affected versions of this package are vulnerable to Privilege Escalation. pleaseedit 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

CVSS Scores

version 3.1