Symlink Attack Affecting sudo package, versions [,1.8.32)[1.9.0,1.9.5)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.1% (42nd 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-UNMANAGED-SUDO-2368630
  • published26 Jan 2022
  • disclosed12 Jan 2021
  • creditUnknown

Introduced: 12 Jan 2021

CVE-2021-23240  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade sudo to version 1.8.32, 1.9.5 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack selinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local unprivileged user to gain file ownership and escalate privileges by replacing a temporary file with a symlink to an arbitrary file target. This affects SELinux RBAC support in permissive mode. Machines without SELinux are not vulnerable.

References

CVSS Scores

version 3.1