In Sudo through 1.9.17p2 before 3e474c2, a failure of a setuid, setgid, or setgroups call, during a privilege drop before running the mailer, is not a fatal error and can lead to privilege escalation.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "3e474c2f201484be83d994ae10a4e20e8c81bb69"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "3e474c2"
}
],
"source": "DESCRIPTION"
}
],
"cwe_ids": [
"CWE-271"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35535.json",
"cna_assigner": "mitre"
}{
"cpe": [
"cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*",
"cpe:2.3:a:sudo_project:sudo:1.9.17:-:*:*:*:*:*:*",
"cpe:2.3:a:sudo_project:sudo:1.9.17:p1:*:*:*:*:*:*",
"cpe:2.3:a:sudo_project:sudo:1.9.17:p2:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.9.17"
},
{
"introduced": "1.9.17-NA"
},
{
"last_affected": "1.9.17-NA"
},
{
"introduced": "1.9.17-p1"
},
{
"last_affected": "1.9.17-p1"
},
{
"introduced": "1.9.17-p2"
},
{
"last_affected": "1.9.17-p2"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}[
{
"target": {
"function": "exec_mailer",
"file": "lib/eventlog/eventlog.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "101007772803074191062270317299838063175",
"length": 1759.0
},
"id": "CVE-2026-35535-0831e178",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"file": "lib/eventlog/eventlog.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"263845906899080985159730825312937987898",
"116475902712143421498043412034187947247",
"100219529180569737803839869439939897442",
"77340269098421372314083152745059755866",
"63779676918913682173449456751742328080",
"148623399507615779498835617839979535270",
"59844290334038695193910192959048160488",
"224787506611231760099322904931784015632",
"286988158006510476053637499608505957455",
"96282795157027630575513166016164901627",
"170870465057586387247421659736704645000",
"22708145760430558098112071272059840107",
"185445579483117136555770549377341195632",
"288509251318735521589473705906592324008",
"244942494744110472919884302168262341522",
"60701821246690337822012920524725848249",
"334237229467571058864950182906448108464",
"121412061301488257672415730835884777985",
"178270626382672136530133337377734362466",
"225100991138400292259597573974216541204",
"304265085211722379117637782015520087778",
"334122491134363600291934249551911964576",
"337079046658254322025868177099253753073"
],
"threshold": 0.9
},
"id": "CVE-2026-35535-2a760716",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"file": "plugins/sudoers/policy.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"207620755771966877323196294288993678113",
"131951879670359617510831720010782808548",
"38923673859818599120185236372161077932",
"313300672864798581967007510635401034843"
],
"threshold": 0.9
},
"id": "CVE-2026-35535-2dee4649",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"file": "plugins/sudoers/logging.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"233234805211933736316904956597424836525",
"3184324080972848663822701624100071245",
"226969961697767768798024007923601985007",
"93332419901302997275151741334458828161"
],
"threshold": 0.9
},
"id": "CVE-2026-35535-8064a473",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"file": "lib/eventlog/eventlog_conf.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"223718012468213653110064387271235344574",
"204572401413240414516190767123280834172",
"338698702183787700977487565129551779883",
"151423656660813886824129485303957723915",
"272619789747850891715008504857859942809",
"42862618703878291942628995031117401806",
"210371375361425094370404560693177615368",
"3570942893863257532024433467634333580",
"34599804834934088389763681523659866167",
"309063430433628600873161836244969010191"
],
"threshold": 0.9
},
"id": "CVE-2026-35535-9586e660",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"function": "eventlog_set_mailuid",
"file": "lib/eventlog/eventlog_conf.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "208907514540432649440159403372396282602",
"length": 63.0
},
"id": "CVE-2026-35535-ae38f702",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"file": "include/sudo_eventlog.h"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"51214240330136457317898313147815907952",
"15115772652499377069235939474483309089",
"171889210586449855195025755342310331475",
"74866657867003562948701261956300068332",
"131059777563148620761054925360985348183",
"227509515116617010033849887040020877161",
"256840403752391796514803491898615072138",
"60238358574007990765374613432561167910"
],
"threshold": 0.9
},
"id": "CVE-2026-35535-cc9592b3",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
},
{
"target": {
"function": "init_eventlog_config",
"file": "plugins/sudoers/logging.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "202072959040434345606801807883564003673",
"length": 743.0
},
"id": "CVE-2026-35535-ea2d4d66",
"source": "https://github.com/sudo-project/sudo/commit/3e474c2f201484be83d994ae10a4e20e8c81bb69"
}
]
"2026-07-27T09:24:29Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-35535.json"