{"id":"CVE-2021-45444","state":"PUBLISHED","title":"In zsh before 5.8.1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive P","description":"In zsh before 5.8.1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive PROMPT_SUBST expansion.","publishedAt":"2022-02-13T05:32:21.000Z","updatedAt":"2024-08-04T04:39:20.752Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://zsh.sourceforge.io/releases.html","https://vuln.ryotak.me/advisories/63","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/","https://www.debian.org/security/2022/dsa-5078","https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/","https://support.apple.com/kb/HT213257","https://support.apple.com/kb/HT213256","https://support.apple.com/kb/HT213255","http://seclists.org/fulldisclosure/2022/May/33","http://seclists.org/fulldisclosure/2022/May/35","http://seclists.org/fulldisclosure/2022/May/38"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:13.309Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/45xxx/CVE-2021-45444.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-45444","state":"PUBLISHED","datePublished":"2022-02-13T05:32:21.000Z","dateUpdated":"2024-08-04T04:39:20.752Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-12-21T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"In zsh before 5.8.1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive PROMPT_SUBST expansion."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://zsh.sourceforge.io/releases.html","tags":["x_refsource_MISC"]},{"url":"https://vuln.ryotak.me/advisories/63","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/","name":"FEDORA-2022-adf0c6d196","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.debian.org/security/2022/dsa-5078","name":"DSA-5078","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html","name":"[debian-lts-announce] 20220218 [SECURITY] [DLA 2926-1] zsh security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/","name":"FEDORA-2022-0a06987c3c","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://support.apple.com/kb/HT213257","tags":["x_refsource_CONFIRM"]},{"url":"https://support.apple.com/kb/HT213256","tags":["x_refsource_CONFIRM"]},{"url":"https://support.apple.com/kb/HT213255","tags":["x_refsource_CONFIRM"]},{"url":"http://seclists.org/fulldisclosure/2022/May/33","name":"20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2022/May/35","name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"http://seclists.org/fulldisclosure/2022/May/38","name":"20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4","tags":["mailing-list","x_refsource_FULLDISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2022-05-17T06:08:11.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-45444","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In zsh before 5.8.1, an attacker can achieve code execution if they control a command output inside the prompt, as demonstrated by a %F argument. This occurs because of recursive PROMPT_SUBST expansion."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://zsh.sourceforge.io/releases.html","refsource":"MISC","url":"https://zsh.sourceforge.io/releases.html"},{"name":"https://vuln.ryotak.me/advisories/63","refsource":"MISC","url":"https://vuln.ryotak.me/advisories/63"},{"name":"FEDORA-2022-adf0c6d196","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/"},{"name":"DSA-5078","refsource":"DEBIAN","url":"https://www.debian.org/security/2022/dsa-5078"},{"name":"[debian-lts-announce] 20220218 [SECURITY] [DLA 2926-1] zsh security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html"},{"name":"FEDORA-2022-0a06987c3c","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/"},{"name":"https://support.apple.com/kb/HT213257","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213257"},{"name":"https://support.apple.com/kb/HT213256","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213256"},{"name":"https://support.apple.com/kb/HT213255","refsource":"CONFIRM","url":"https://support.apple.com/kb/HT213255"},{"name":"20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/May/33"},{"name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/May/35"},{"name":"20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2022/May/38"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://zsh.sourceforge.io/releases.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://vuln.ryotak.me/advisories/63","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2P3LPMGENEHKDWFO4MWMZSZL6G7Y4CV7/","name":"FEDORA-2022-adf0c6d196","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5078","name":"DSA-5078","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00020.html","name":"[debian-lts-announce] 20220218 [SECURITY] [DLA 2926-1] zsh security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BWF3EXNBX5SVFDBL4ZFOD4GJBWFUKWN4/","name":"FEDORA-2022-0a06987c3c","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://support.apple.com/kb/HT213257","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://support.apple.com/kb/HT213256","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://support.apple.com/kb/HT213255","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/May/33","name":"20220516 APPLE-SA-2022-05-16-4 Security Update 2022-004 Catalina","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/May/35","name":"20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]},{"url":"http://seclists.org/fulldisclosure/2022/May/38","name":"20220516 APPLE-SA-2022-05-16-2 macOS Monterey 12.4","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T04:39:20.752Z"}}]}}}