{"id":"CVE-2024-38396","details":"An issue was discovered in iTerm2 3.5.x before 3.5.2. Unfiltered use of an escape sequence to report a window title, in combination with the built-in tmux integration feature (enabled by default), allows an attacker to inject arbitrary code into the terminal, a different vulnerability than CVE-2024-38395.","modified":"2026-08-12T03:51:43.012369671Z","published":"2024-06-16T00:00:00Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38396.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://iterm2.com/downloads.html"},{"type":"WEB","url":"https://vin01.github.io/piptagole/escape-sequences/iterm2/rce/2024/06/16/iterm2-rce-window-title-tmux-integration.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38396.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38396"},{"type":"FIX","url":"https://gitlab.com/gnachman/iterm2/-/commit/fc60236a914d63fb70a5c632e211203a4f1bd4dd"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/06/17/1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gnachman/iterm2","events":[{"introduced":"7ff0a05755330fcf4f617c8e4464c81f2391995d"},{"fixed":"978671323e157eee060880c9a17d2fcea437b724"}],"database_specific":{"extracted_events":[{"introduced":"3.5.0"},{"fixed":"3.5.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:iterm2:iterm2:*:*:*:*:*:*:*:*"}},{"type":"GIT","repo":"https://gitlab.com/gnachman/iterm2","events":[{"introduced":"7ff0a05755330fcf4f617c8e4464c81f2391995d"},{"fixed":"fc60236a914d63fb70a5c632e211203a4f1bd4dd"}],"database_specific":{"extracted_events":[{"introduced":"3.5.x"},{"fixed":"3.5.2"}],"source":["DESCRIPTION","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38396.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}