Debian dla-3272 : sudo - security update

high Nessus Plugin ID 170164

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 host has packages installed that are affected by a vulnerability as referenced in the dla-3272 advisory.

- ------------------------------------------------------------------------- Debian LTS Advisory DLA-3272-1 [email protected] https://www.debian.org/lts/security/ Thorsten Alteholz January 18, 2023 https://wiki.debian.org/LTS
- -------------------------------------------------------------------------

Package : sudo Version : 1.8.27-1+deb10u5 CVE ID : CVE-2023-22809


Matthieu Barjole and Victor Cutillas discovered that sudoedit in sudo, a program designed to provide limited super user privileges to specific users, does not properly handle '--' to separate the editor and arguments from files to edit. A local user permitted to edit certain files can take advantage of this flaw to edit a file not permitted by the security policy, resulting in privilege escalation.


More information can be found at:
https://www.sudo.ws/security/advisories/sudoedit_any/


For Debian 10 buster, this problem has been fixed in version 1.8.27-1+deb10u5.

We recommend that you upgrade your sudo packages.

For the detailed security status of sudo please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/sudo

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the sudo packages.

See Also

https://security-tracker.debian.org/tracker/source-package/sudo

https://security-tracker.debian.org/tracker/CVE-2023-22809

https://packages.debian.org/source/buster/sudo

Plugin Details

Severity: High

ID: 170164

File Name: debian_DLA-3272.nasl

Version: 1.7

Type: local

Agent: unix

Published: 1/19/2023

Updated: 1/22/2025

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.9

Vector: CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2023-22809

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7.5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:H/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:sudo-ldap, cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:sudo

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/18/2023

Vulnerability Publication Date: 1/18/2023

Exploitable With

Metasploit (Sudoedit Extra Arguments Priv Esc)

Reference Information

CVE: CVE-2023-22809