Off-by-one Error Affecting sudo-devel package, versions <0:1.8.23-4.amzn2.2.1


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Mature
EPSS
96.33% (100th 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-AMZN2-SUDODEVEL-1693341
  • published27 Sept 2021
  • disclosed26 Jan 2021

Introduced: 26 Jan 2021

CVE-2021-3156  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 sudo-devel to version 0:1.8.23-4.amzn2.2.1 or higher.
This issue was patched in ALAS2-2021-1590.

NVD Description

Note: Versions mentioned in the description apply only to the upstream sudo-devel package and not the sudo-devel package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.

References

CVSS Scores

version 3.1