Out-of-bounds Write Affecting sudo package, versions [1.7.1,1.8.26)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Mature
EPSS
0.33% (71st 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-2368611
  • published26 Jan 2022
  • disclosed29 Jan 2020
  • creditUnknown

Introduced: 29 Jan 2020

CVE-2019-18634  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade sudo to version 1.8.26 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo process. (pwfeedback is a default setting in Linux Mint and elementary OS; however, it is NOT the default for upstream and many other packages, and would exist only if enabled by an administrator.) The attacker needs to deliver a long string to the stdin of getln() in tgetpass.c.

References

CVSS Scores

version 3.1