Advisory

USN-4705-1

Also known as: CVE-2021-23239, CVE-2021-3156

Summary

sudo vulnerabilities

Details

It was discovered that Sudo incorrectly handled memory when parsing command
lines. A local attacker could possibly use this issue to obtain unintended
access to the administrator account. (CVE-2021-3156)

It was discovered that the Sudo sudoedit utility incorrectly handled
checking directory permissions. A local attacker could possibly use this
issue to bypass file permissions and determine if a directory exists or
not. (CVE-2021-23239)

Severity

Not rated by the source.

Dates

Published
2021-01-26 18:48 UTC
Modified
2026-04-27 16:03 UTC

Affected packages and fixes

sudo

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 1.8.16-0ubuntu1.10 (ecosystem)

Fixed versions

1.8.16-0ubuntu1.10

Fix

  • Fixed version 1.8.16-0ubuntu1.10
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

sudo

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1.8.21p2-3ubuntu1.4 (ecosystem)

Fixed versions

1.8.21p2-3ubuntu1.4

Fix

  • Fixed version 1.8.21p2-3ubuntu1.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

sudo

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.8.31-1ubuntu1.2 (ecosystem)

Fixed versions

1.8.31-1ubuntu1.2

Fix

  • Fixed version 1.8.31-1ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences