Advisory

UBUNTU-CVE-2021-3156

Also known as: CVE-2021-3156

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-01-26 18:00 UTC
Modified
2026-02-04 03:55 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