{"id":"CVE-2021-3725","aliases":["CVE-2021-3725"],"related":[],"kind":"vulnerability","state":"published","title":"OS Command Injection in ohmyzsh/ohmyzsh","summary":"Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a directory with a carefully-crafted name, then press Alt-Left, the system is subject to command injection. Impacted areas: - Functions pop_past and pop_future in dirhistory plugin.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en el plugin dirhistory Descripción: los widgets que retroceden y avanzan en el historial de directorios, activados al pulsar Alt-Izquierda y Alt-Derecha, usan funciones que ejecutan de forma insegura eval sobre nombres de directorios. Si se entra en un directorio con un nombre cuidadosamente diseñado, y luego se presiona Alt-Izquierda, el sistema está sujeto a la inyección de comandos. Áreas afectadas: - Funciones pop_past y pop_future en el plugin dirhistory","source":"nvd"}],"published":"2021-11-30T09:30:14.000Z","modified":"2026-06-17T04:05:38.660Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-78","CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"06fc5fb","status":"affected"}],"vendor":"ohmyzsh","product":"ohmyzsh/ohmyzsh","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"11-11-2021"}],"vendor":"planetargon","product":"oh_my_zsh","cpe":"cpe:2.3:a:planetargon:oh_my_zsh:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ohmyzsh/ohmyzsh/commit/06fc5fb","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3725","url":"https://www.cve.org/CVERecord?id=CVE-2021-3725","licence":"CVE Terms of Use","modified":"2024-08-03T17:01:08.297Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3725","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3725","licence":"Public domain","modified":"2026-06-17T04:05:38.660Z"}],"updatedAt":"2026-11-25T22:58:05.774Z","epss":{"score":0.01052,"percentile":0.6526,"date":"2026-12-01T12:00:22.000Z"}}