{"id":"CVE-2022-48337","details":"GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system C library function in its implementation of the etags program. For example, a victim may use the \"etags -u *\" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.","modified":"2026-09-12T03:45:23.449439947Z","published":"2023-02-20T00:00:00Z","related":["ALSA-2023:2626","ALSA-2023:7083","SUSE-SU-2023:0597-1","SUSE-SU-2023:0598-1","SUSE-SU-2023:0675-1","openSUSE-SU-2024:12721-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48337.json"},"references":[{"type":"WEB","url":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48337.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48337"},{"type":"ADVISORY","url":"https://www.debian.org/security/2023/dsa-5360"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://cgit.git.savannah.gnu.org/cgit/emacs.git","events":[{"introduced":"0"},{"fixed":"01a4035c869b91c153af9a9132c87adb7669ea1c"}],"database_specific":{"source":"REFERENCES"}},{"type":"GIT","repo":"https://https.git.savannah.gnu.org/git/emacs.git/","events":[{"introduced":"0"},{"fixed":"739b5d0e52d83ec567bd61a5a49ac0e93e0eb469"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE"],"cpe":"cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"28.2"},{"last_affected":"28.2"}]}}],"versions":["emacs-28.1.91","emacs-28.1.90","emacs-28.1","emacs-28.0.92","emacs-28.0.91","emacs-28.0.90","emacs-pretest-23.1.92","emacs-pretest-23.1.91","emacs-pretest-23.1.90","emacs-pretest-23.0.95","mh-e-8.2","mh-e-doc-8.2","emacs-pretest-23.0.94","emacs-pretest-23.0.93","emacs-pretest-23.0.92","emacs-pretest-23.0.91","emacs-pretest-23.0.90","mh-e-doc-8.1","mh-e-8.1","emacs-pretest-22.0.98","emacs-pretest-22.0.97","emacs-pretest-22.0.96","emacs-pretest-22.0.95","emacs-pretest-22.0.94","emacs-pretest-22.0.93","emacs-pretest-22.0.92","emacs-pretest-22.0.91","mh-e-8.0.3","mh-e-doc-8.0.3","emacs-pretest-22.0.90","mh-e-8.0.2","mh-e-doc-8.0.1","mh-e-8.0.1","mh-e-doc-8.0","mh-e-8.0","ttn-vms-21-2-B4","emacs-pretest-21.0.106","emacs-pretest-21.0.105","emacs-pretest-21.0.104","emacs-pretest-21.0.103","emacs-pretest-21.0.102","emacs-pretest-21.0.101","emacs-pretest-21.0.100","emacs-pretest-21.0.99","emacs-pretest-21.0.98","emacs-pretest-21.0.97","emacs-pretest-21.0.96","emacs-pretest-21.0.95","emacs-pretest-21.0.93","emacs-pretest-21.0.92","emacs-pretest-21.0.91","emacs-pretest-21.0.90","emacs-20.4","emacs-20.3","emacs-20.2","emacs-20.1","emacs-19.34"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48337.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"}]}