Improper Privilege Management Affecting sudo package, versions <0:1.8.25p1-8.el8_1.3


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

Exploit Maturity
Mature
EPSS
0.09% (40th 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 Learn

Learn about Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL8-SUDO-4400467
  • published19 Jan 2023
  • disclosed18 Jan 2023

Introduced: 18 Jan 2023

CVE-2023-22809  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade RHEL:8 sudo to version 0:1.8.25p1-8.el8_1.3 or higher.
This issue was patched in RHSA-2023:0280.

NVD Description

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

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.

CVSS Scores

version 3.1