UBUNTU-CVE-2021-3156

    Dashboard / Vulnerabilities / UBUNTU-CVE-2021-3156

    UBUNTU-CVE-2021-3156

    Published: 26 Jan 2021Last Modified: 4 Feb 2026

    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.

    Affected packages

    Package

    Name: sudo

    Purl: pkg:deb/ubuntu/[email protected]+esm6?arch=source&distro=trusty/esm

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.8.9p5-1ubuntu1.5+esm6

    Affected versions

    1.8.6p3-0ubuntu3
    1.8.8-2ubuntu1
    1.8.8-2ubuntu2
    1.8.9p4-1ubuntu1
    1.8.9p4-1ubuntu2
    1.8.9p5-1ubuntu1
    1.8.9p5-1ubuntu1.1
    1.8.9p5-1ubuntu1.2
    1.8.9p5-1ubuntu1.3
    1.8.9p5-1ubuntu1.4
    1.8.9p5-1ubuntu1.5+esm1
    1.8.9p5-1ubuntu1.5+esm2
    1.8.9p5-1ubuntu1.5+esm3
    1.8.9p5-1ubuntu1.5+esm5

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    UBUNTU-CVE-2021-3156 | CVE-DB