An off-by-one error in sudo that lets a local user become root through sudoedit.
Published in the NVD on 26/01/2021
In the CISA catalogue of actively exploited vulnerabilities since 06/04/2022
Exploitation probability (EPSS, 01/11/2026): 99.962 %, percentile 99.976
Baron Samedit is an off-by-one error in sudo that results in a heap-based buffer overflow. With sudoedit -s and a command-line argument that ends in a single backslash, a local user can gain root privileges.
The NVD rates it at CVSS 7.8, and CISA has listed it as actively exploited since 6 April 2022. The NVD lists sudo 1.8.2 to 1.8.31 and 1.9.0 to 1.9.5p1.
Affected: 1.9.0 - 1.9.5p1
Fixed in 1.9.5p2
Affected: 1.8.2 - 1.8.31
Fixed in 1.8.32
Fixed from package version 1.9.5p1-1.1
Fixed from package version 1.9.5p1-1.1
Fixed from package version 1.8.21p2-3ubuntu1.4
Fixed from package version 1.8.31-1ubuntu1.2
Update sudo to 1.9.5p2 or 1.8.32 or install the fixed package of your distribution.
Erseni Patch tells you when a new vulnerability affects exactly your version, and when your release branch loses its support. Add the program or package with your version and we check it right away.
Already have an account? Log in and add sudo (Debian 12)
Facts checked on 02/11/2026 against NVD, CISA KEV, FIRST EPSS, the Debian Security Tracker and OSV.