CVE-2021-3156

high KEV
Published 2022-04-06 ยท Modified 2022-04-06
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

Description

Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.

CISA KEV

Vendor
Sudo
Product
Sudo
Due date
2022-04-27

Predictions

Exploit likelihood
99%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-49521 local multiple
West Shepherd ยท 2021-02-03

Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1)

Source code queued for fetch โ€” refresh in a moment.
EDB-49522 local multiple
nu11secur1ty ยท 2021-02-03

Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Sudo Heap-Based Buffer Overflow
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 1.9.5.p2-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 1.9.5p1-1.1
sid Fixed 1.9.5p1-1.1
forky Fixed 1.9.5p1-1.1
bullseye Fixed 1.9.5p1-1.1
bookworm Fixed 1.9.5p1-1.1
redhat Red Hat Fixed 1 release
VersionStatusFixed in
8 Fixed โ€”

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.