synced 4 MIN AGO
01 Record

CVE-2021-3156

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

HighKEVPUBLISHEDCNA: mitre
CNA base score7.8 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

02 Description

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

03 Exploitation and scoring

Exploitation
Exploited in the wild. Listed in the CISA Known Exploited Vulnerabilities catalog on 2022-04-06. Federal remediation due 2022-04-27.
SSVC decision
  • ExploitationactiveCISA reports credible evidence of active exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
99.96% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 99.9% of scored records. A rank, not a probability.
NVD base score
7.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Analyzed. NVD last modified this record on 2026-06-17.
Red Hat severity
Important. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2021-01-26 00:00Z5 YR AGO
Last updated
2025-10-21 23:35Z1 YR AGO
Reserved
2021-01-15
Assigning CNA
mitre
Record state
PUBLISHED
Severity
High (CVSS 7.8)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
Data version
5.1
Document digest
e60a9d31942b816ae37b34acfb7db6b3297f620d3425d35ada952cbc44f0f048

05 Affected products

VendorProductVersionsPlatforms
beyondtrustprivilege_management_for_macNot specified—
beyondtrustprivilege_management_for_unix/linuxNot specified—
debiandebian_linuxNot specified—
fedoraprojectfedoraNot specified—
mcafeeweb_gatewayNot specified—
netappactive_iq_unified_managerNot specified—
netappcloud_backupNot specified—
netapphci_management_nodeNot specified—
netappontap_toolsNot specified—
netappsolidfireNot specified—
oraclemicros_compact_workstation_3Not specified—
oraclemicros_es400Not specified—
oraclemicros_es400_firmwareNot specified—
oraclemicros_kitchen_display_systemNot specified—
oraclemicros_workstation_5aNot specified—
oraclemicros_workstation_5a_firmwareNot specified—
oraclemicros_workstation_6Not specified—
oraclemicros_workstation_6_firmwareNot specified—
oracletekelec_platform_distributionNot specified—
redhatenterprise_linuxNot specified—
redhatrhel_ausNot specified—
redhatrhel_e4sNot specified—
redhatrhel_elsNot specified—
redhatrhel_eusNot specified—
redhatrhel_tusNot specified—
redhatrhev_hypervisorNot specified—
sudo_projectsudoNot specified—
synologydiskstation_managerNot specified—
synologyskynasNot specified—
synologyskynas_firmwareNot specified—
synologyvs960hdNot specified—
synologyvs960hd_firmwareNot specified—

06 References

07 Fixed in

Arch Linux

  • sudo
    Fixed in 1.9.5.p2-1

Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.

Debian 12

  • sudo
    Fixed in 1.9.5p1-1.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • sudo
    Fixed in 1.9.5p1-1.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • sudo
    Fixed in 1.9.5p1-1.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • sudo
    Fixed in 1.8.16-0ubuntu1.10

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • sudo
    Fixed in 1.8.21p2-3ubuntu1.4

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • sudo
    Fixed in 1.8.31-1ubuntu1.2

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • sudo
    Fixed in 1.8.9p5-1ubuntu1.5+esm6
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.