Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-3156

published high CVSS 3.1 · 7.8

sudo: Heap buffer overflow in argument parsing

Title from Red Hat VEX

Published
26 Jan 2021, 00:00:00 UTC
Updated
21 Oct 2025, 23:35:29 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated mitre
Amazon Linux AL2 Release evaluationALAS2-2021-1590 Fixed Not stated Amazon Linux assessment
Alpine Linux edge sudo Fixed 1.9.5_p2-r0 Package fix record
Debian buster sudo Advisory build 1.8.27-1+deb10u3 DSA-4839-1
Oracle Linux 6 sudoi686 Advisory build 0:1.8.6p3-29.0.3.el6_10.3 ELSA-2021-9169
Red Hat Enterprise Linux RHEL-6 sudoi686 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Alpine Linux v3.10 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.11 sudo Fixed 1.8.31-r1 Package fix record
Show 94 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.12 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.13 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.14 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.15 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.16 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.17 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.18 sudo Fixed 1.9.5p2-r0 Package fix record
Alpine Linux v3.19 sudo Fixed 1.9.5_p2-r0 Package fix record
Alpine Linux v3.20 sudo Fixed 1.9.5_p2-r0 Package fix record
Alpine Linux v3.21 sudo Fixed 1.9.5_p2-r0 Package fix record
Alpine Linux v3.22 sudo Fixed 1.9.5_p2-r0 Package fix record
Alpine Linux v3.23 sudo Fixed 1.9.5_p2-r0 Package fix record
Alpine Linux v3.24 sudo Fixed 1.9.5_p2-r0 Package fix record
Debian stretch sudo Advisory build 1.8.19p1-2.1+deb9u3 DLA-2534-1
Oracle Linux 6 sudox86_64 Advisory build 0:1.8.6p3-29.0.3.el6_10.3 ELSA-2021-9169
Oracle Linux 6 sudo-develi686 Advisory build 0:1.8.6p3-29.0.3.el6_10.3 ELSA-2021-9169
Oracle Linux 6 sudo-develx86_64 Advisory build 0:1.8.6p3-29.0.3.el6_10.3 ELSA-2021-9169
Oracle Linux 7 sudoaarch64 Advisory build 0:1.8.23-10.el7_9.1 ELSA-2021-0221
Oracle Linux 7 sudox86_64 Advisory build 0:1.8.23-10.el7_9.1 ELSA-2021-0221
Oracle Linux 7 sudo-develaarch64 Advisory build 0:1.8.23-10.el7_9.1 ELSA-2021-0221
Oracle Linux 7 sudo-develx86_64 Advisory build 0:1.8.23-10.el7_9.1 ELSA-2021-0221
Oracle Linux 8 sudoaarch64 Advisory build 0:1.8.29-6.el8_3.1 ELSA-2021-0218
Oracle Linux 8 sudox86_64 Advisory build 0:1.8.29-6.el8_3.1 ELSA-2021-0218
Red Hat Enterprise Linux RHEL-6 sudos390x Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudosrc Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudox86_64 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-debuginfoi686 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-debuginfos390 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-debuginfos390x Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-debuginfox86_64 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-develi686 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-devels390 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-devels390x Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-6 sudo-develx86_64 Advisory build 1.8.6p3-29.el6_10.4 RHSA-2021:0227
Red Hat Enterprise Linux RHEL-7 sudoppc64 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudoppc64 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudoppc64 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudoppc64le Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudoppc64le Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudoppc64le Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudoppc64le Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudos390x Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudos390x Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudos390x Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.6p7-17.el7_2.3 RHSA-2021:0226
Red Hat Enterprise Linux RHEL-7 sudosrc Advisory build 1.8.6p7-23.el7_3.3 RHSA-2021:0225
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.6p7-17.el7_2.3 RHSA-2021:0226
Red Hat Enterprise Linux RHEL-7 sudox86_64 Advisory build 1.8.6p7-23.el7_3.3 RHSA-2021:0225
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.6p7-17.el7_2.3 RHSA-2021:0226
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoi686 Advisory build 1.8.6p7-23.el7_3.3 RHSA-2021:0225
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64le Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64le Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64le Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfoppc64le Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390x Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390x Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfos390x Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.6p7-17.el7_2.3 RHSA-2021:0226
Red Hat Enterprise Linux RHEL-7 sudo-debuginfox86_64 Advisory build 1.8.6p7-23.el7_3.3 RHSA-2021:0225
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.19p2-12.el7_4.2 RHSA-2021:0224
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.6p7-17.el7_2.3 RHSA-2021:0226
Red Hat Enterprise Linux RHEL-7 sudo-develi686 Advisory build 1.8.6p7-23.el7_3.3 RHSA-2021:0225
Red Hat Enterprise Linux RHEL-7 sudo-develppc Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221
Red Hat Enterprise Linux RHEL-7 sudo-develppc Advisory build 1.8.23-3.el7_6.2 RHSA-2021:0223
Red Hat Enterprise Linux RHEL-7 sudo-develppc Advisory build 1.8.23-4.el7_7.3 RHSA-2021:0222
Red Hat Enterprise Linux RHEL-7 sudo-develppc64 Advisory build 1.8.23-10.el7_9.1 RHSA-2021:0221

Package entries are limited to the first 100 builds and 100 linked advisories.

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 a single backslash character.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

57

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

2
  • n/a (mitre · cna)
  • CWE-193 CWE-193 Off-by-one Error (CISA-ADP · adp)

References

35

Provider assertions

3

mitre · cna

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
36a89dab3531a5245ee696b08133300933d3ef91242dbc38a6e9400a31f59075
Ingested
23 Sep 2026, 07:55:44 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected