{"id":"CVE-2022-43995","details":"Sudo 1.8.0 through 1.9.12, with the crypt() password backend, contains a plugins/sudoers/auth/passwd.c array-out-of-bounds error that can result in a heap-based buffer over-read. This can be triggered by arbitrary local users with access to Sudo by entering a password of seven characters or fewer. The impact could vary depending on the system libraries, compiler, and processor architecture.","modified":"2026-08-12T13:32:18.821307Z","published":"2022-11-02T00:00:00Z","related":["SUSE-SU-2022:3886-1","SUSE-SU-2022:3938-1","SUSE-SU-2022:4001-1","SUSE-SU-2022:4077-1","SUSE-SU-2022:4240-1","SUSE-SU-2022:4280-1","openSUSE-SU-2024:12483-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/43xxx/CVE-2022-43995.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://news.ycombinator.com/item?id=33465707"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/43xxx/CVE-2022-43995.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43995"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202211-08"},{"type":"ADVISORY","url":"https://www.sudo.ws/security/advisories/"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2139911"},{"type":"FIX","url":"https://github.com/sudo-project/sudo/commit/bd209b9f16fcd1270c13db27ae3329c677d48050"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/millert/sudo","events":[{"introduced":"4333b06914558093a327ee445699c479a57933a4"},{"fixed":"c684bf08307b3270a62f2130bafb37c36aa3c99e"},{"introduced":"c684bf08307b3270a62f2130bafb37c36aa3c99e"},{"last_affected":"c684bf08307b3270a62f2130bafb37c36aa3c99e"}],"database_specific":{"cpe":["cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*","cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*"],"extracted_events":[{"introduced":"1.8.0"},{"fixed":"1.9.12"},{"introduced":"1.9.12-NA"},{"last_affected":"1.9.12-NA"}],"source":["CPE_RANGE","CPE_STRING"]}},{"type":"GIT","repo":"https://github.com/sudo-project/sudo","events":[{"introduced":"4333b06914558093a327ee445699c479a57933a4"},{"fixed":"c684bf08307b3270a62f2130bafb37c36aa3c99e"},{"introduced":"c684bf08307b3270a62f2130bafb37c36aa3c99e"},{"fixed":"bd209b9f16fcd1270c13db27ae3329c677d48050"}],"database_specific":{"cpe":["cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*","cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*"],"extracted_events":[{"introduced":"1.8.0"},{"fixed":"1.9.12"},{"introduced":"1.9.12-NA"},{"last_affected":"1.9.12-NA"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["1.9.12-NA","SUDO_1_9_12","SUDO_1_9_11p3","SUDO_1_9_11p2","SUDO_1_9_11p1","SUDO_1_9_11","SUDO_1_9_10","SUDO_1_9_9","SUDO_1_9_8p2","SUDO_1_9_8p1","SUDO_1_9_8","SUDO_1_9_7p2","SUDO_1_9_7p1","SUDO_1_9_7","SUDO_1_9_6p1","SUDO_1_9_6","SUDO_1_9_5p2","SUDO_1_9_5p1","SUDO_1_9_5","SUDO_1_9_4p2","SUDO_1_9_4p1","SUDO_1_9_4","SUDO_1_9_3p1","SUDO_1_9_3","SUDO_1_9_2","SUDO_1_9_1","SUDO_1_9_0","SUDO_1_8_0","v1.9.11p3","v1.9.11p2","v1.9.11p1","v1.9.11","v1.9.10","v1.9.9","v1.9.8p2","v1.9.8p1","v1.9.8","v1.9.7p2","v1.9.7p1","v1.9.7","v1.9.6p1","v1.9.6","v1.9.5p2","v1.9.5p1","v1.9.5","v1.9.4p2","v1.9.4p1","v1.9.4","v1.9.3p1","v1.9.3","v1.9.2","v1.9.1","v1.9.0","v1.8.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-43995.json","vanir_signatures_modified":"2026-08-12T13:32:18Z","vanir_signatures":[{"target":{"file":"plugins/sudoers/auth/passwd.c"},"deprecated":false,"digest":{"line_hashes":["337633252920991241112857162465452390298","262853266045190752843127941413843408656","61690952090159972777364936005601145194","128035712224375988314427638006103912115","94127008450240786502871837663103258118","98733321982592306874869601466115003794","8004731231940764953004213991397676849","221443112049861906691759667364935375915","113536667263124047403014320319250631257","267568419315262234764733117499065506321","181495643499762969102095757999593662642","224122946542034265895270638157337010187","26387421224791964521672678200805934154"],"threshold":0.9},"id":"CVE-2022-43995-583b6dec","signature_type":"Line","signature_version":"v1","source":"https://github.com/sudo-project/sudo/commit/bd209b9f16fcd1270c13db27ae3329c677d48050"},{"deprecated":false,"digest":{"function_hash":"98815895881217986653558569722860438731","length":679},"id":"CVE-2022-43995-773384c8","signature_type":"Function","signature_version":"v1","source":"https://github.com/sudo-project/sudo/commit/bd209b9f16fcd1270c13db27ae3329c677d48050","target":{"file":"plugins/sudoers/auth/passwd.c","function":"sudo_passwd_verify"}}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"}]}