{"id":"CVE-2019-20044","sourceIdentifier":"cve@mitre.org","published":"2020-02-24T14:15:11.667","lastModified":"2026-06-17T02:29:53.250","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"In Zsh before 5.8, attackers able to execute commands can regain privileges dropped by the --no-PRIVILEGED option. Zsh fails to overwrite the saved uid, so the original privileges can be restored by executing MODULE_PATH=/dir/with/module zmodload with a module that calls setuid()."},{"lang":"es","value":"En Zsh versiones anteriores a 5.8, los atacantes capaces de ejecutar comandos pueden recuperar privilegios eliminados mediante la opción --no-PRIVILEGED. Zsh presenta un fallo al sobrescribir el uid guardado, ya que los privilegios originales pueden ser restaurados mediante una ejecución de zmodload de MODULE_PATH=/dir/with/module con un módulo que llama a la función setuid()."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","baseScore":7.2,"accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":3.9,"impactScore":10.0,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-273"}]}],"configurations":[{"operator":"AND","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:zsh:zsh:*:*:*:*:*:*:*:*","versionEndExcluding":"5.8","matchCriteriaId":"334E1948-F09E-438D-8A9F-E1D7573EC29B"}]},{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":false,"criteria":"cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*","matchCriteriaId":"387021A0-AF36-463C-A605-32EA7DAC172E"},{"vulnerable":false,"criteria":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","matchCriteriaId":"703AF700-7A70-47E2-BC3A-7FD03B3CA9C1"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","matchCriteriaId":"97A4B8DF-58DA-4AB6-A1F9-331B36409BA3"},{"vulnerable":true,"criteria":"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*","matchCriteriaId":"80F0FA5D-8D3B-4C0E-81E2-87998286AF33"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","matchCriteriaId":"C11E6FB0-C8C0-4527-9AA0-CB9B316F8F43"},{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","matchCriteriaId":"DEECE5FC-CACF-4496-A3E7-164736409252"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:*","versionEndExcluding":"13.5","matchCriteriaId":"9145C3CB-429B-4FB8-A0AC-B543E9FFF938"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*","versionEndExcluding":"13.5","matchCriteriaId":"9C09256B-04A9-4D08-A791-8022B5AC5B14"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","versionEndExcluding":"10.15.5","matchCriteriaId":"99973242-A249-4C34-B042-5F833AE73708"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","versionStartIncluding":"10.13.0","versionEndExcluding":"10.13.6","matchCriteriaId":"2DA1C24E-B74D-4C8C-931D-AE35BFB4F0CC"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","versionStartIncluding":"10.14.0","versionEndExcluding":"10.14.6","matchCriteriaId":"3E76BECE-0843-4B9F-90DE-7690764701B0"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","versionStartIncluding":"10.15","versionEndExcluding":"10.15.5","matchCriteriaId":"ABAA703D-5FAB-4773-B4A2-759685B17ACB"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:-:*:*:*:*:*:*","matchCriteriaId":"297D2D0C-EA9D-4B2C-9357-D88DB6C7143A"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-002:*:*:*:*:*:*","matchCriteriaId":"0D845143-1B4D-478B-B83E-8F1664CBCAC3"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2018-003:*:*:*:*:*:*","matchCriteriaId":"23C6DF6A-9A30-4F9E-BD9C-C19D8551C6DA"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-001:*:*:*:*:*:*","matchCriteriaId":"754A2DF4-8724-4448-A2AB-AC5442029CB7"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-002:*:*:*:*:*:*","matchCriteriaId":"D392C777-1949-4920-B459-D083228E4688"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-003:*:*:*:*:*:*","matchCriteriaId":"68B0A232-F2A4-4B87-99EB-3A532DFA87DA"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-004:*:*:*:*:*:*","matchCriteriaId":"0DF528F7-0F1E-4E55-A088-91327E3C360C"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-005:*:*:*:*:*:*","matchCriteriaId":"E222445A-D398-47C8-9639-4BAE36B69AA1"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-006:*:*:*:*:*:*","matchCriteriaId":"9425DAC8-038D-4B09-A074-3780AED912FA"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2019-007:*:*:*:*:*:*","matchCriteriaId":"8EA63C1C-1EEC-4961-A7B7-439D21293B99"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-001:*:*:*:*:*:*","matchCriteriaId":"B2F5D631-2306-4526-BEE5-22456D95ABAB"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.13.6:security_update_2020-002:*:*:*:*:*:*","matchCriteriaId":"F79B7361-F2F2-4FA6-A27D-CC8F2D37A726"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:-:*:*:*:*:*:*","matchCriteriaId":"693E7DAE-BBF0-4D48-9F8A-20DDBD4AAC0C"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-001:*:*:*:*:*:*","matchCriteriaId":"CFE26ECC-A2C2-4501-9950-510DE0E1BD86"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-002:*:*:*:*:*:*","matchCriteriaId":"26108BEF-0847-4AB0-BD98-35344DFA7835"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-004:*:*:*:*:*:*","matchCriteriaId":"A369D48B-6A0A-47AE-9513-D5E2E6F30931"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-005:*:*:*:*:*:*","matchCriteriaId":"510F8317-94DA-498E-927A-83D5F41AF54A"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-006:*:*:*:*:*:*","matchCriteriaId":"0D5D1970-6D2A-42CA-A203-42023D71730D"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2019-007:*:*:*:*:*:*","matchCriteriaId":"C68AE52B-5139-40A4-AE9A-E752DBF07D1B"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-001:*:*:*:*:*:*","matchCriteriaId":"0FD3467D-7679-479F-9C0B-A93F7CD0929D"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:mac_os_x:10.14.6:security_update_2020-002:*:*:*:*:*:*","matchCriteriaId":"D4C6098E-EDBD-4A85-8282-B2E9D9333872"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:*","versionEndExcluding":"13.4.5","matchCriteriaId":"87753A67-6F9D-4264-BCEB-0694281F0477"},{"vulnerable":true,"criteria":"cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:*","versionEndExcluding":"6.2.5","matchCriteriaId":"85301873-69B8-4A21-9EFD-F69A5E1ABF40"}]}]}],"references":[{"url":"http://seclists.org/fulldisclosure/2020/May/49","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/53","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/55","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/59","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"http://zsh.sourceforge.net/releases.html","source":"cve@mitre.org","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/XMB5/zsh-privileged-upgrade","source":"cve@mitre.org","tags":["Broken Link"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00004.html","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html","source":"cve@mitre.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FP64FFIZI2CKQOEAOI5A72PVQULE7ZZC/","source":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN5V7MPHRRP7QNHOEK56S7QGRU53WUN6/","source":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/202003-55","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211168","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211170","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211171","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211175","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211168","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211170","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211171","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211175","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://www.zsh.org/mla/zsh-announce/141","source":"cve@mitre.org","tags":["Release Notes","Vendor Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/49","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/53","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/55","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/May/59","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"http://zsh.sourceforge.net/releases.html","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/XMB5/zsh-privileged-upgrade","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Broken Link"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00004.html","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/12/msg00000.html","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FP64FFIZI2CKQOEAOI5A72PVQULE7ZZC/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PN5V7MPHRRP7QNHOEK56S7QGRU53WUN6/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202003-55","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211168","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211170","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211171","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/HT211175","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211168","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211170","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211171","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://support.apple.com/kb/HT211175","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory"]},{"url":"https://www.zsh.org/mla/zsh-announce/141","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Release Notes","Vendor Advisory"]}]}