{"schemaVersion":3,"id":"CVE-2022-48337","aliases":["UBUNTU-CVE-2022-48337","DEBIAN-CVE-2022-48337"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2023-02-20T00:00:00.000Z","modified":"2025-03-18T15:30:23.044Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01617,"percentile":0.75694,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01617},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01617,"percentile":0.75694}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01617,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01617,"percentile":0.75694}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"debian","product":"emacs","name":"emacs","label":"emacs","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/emacs","purlType":"deb","versions":[{"text":"< 1:28.2+1-11","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:28.2+1-11","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"emacs","name":"emacs","label":"emacs","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/emacs","purlType":"deb","versions":[{"text":"< 1:26.3+1-1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:27.1+1-3ubuntu5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:26.3+1-1ubuntu2+esm1 | < 1:27.1+1-3ubuntu5.2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"emacs24","name":"emacs24","label":"emacs24","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/emacs24","purlType":"deb","versions":[{"text":"< 24.5+1-6ubuntu1.1+esm4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.5+1-6ubuntu1.1+esm4","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"emacs25","name":"emacs25","label":"emacs25","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/emacs25","purlType":"deb","versions":[{"text":"< 25.2+1-6ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 25.2+1-6ubuntu0.1~esm2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xemacs21","name":"xemacs21","label":"xemacs21","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xemacs21","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"xemacs21-packages","name":"xemacs21-packages","label":"xemacs21-packages","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/xemacs21-packages","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.0","eol":{"isEol":true,"eolDate":"2026-08-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11","label":"11 (Bullseye)","eolFrom":"2026-08-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"11.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"gnu","product":"emacs","name":"Emacs","label":"emacs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 28.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 28.2","eol":null,"hubHref":"/vendor/gnu/emacs"}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c","label":"git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c","hostname":"git.savannah.gnu.org","tags":["Patch"]},{"url":"https://www.debian.org/security/2023/dsa-5360","label":"www.debian.org/security/2023/dsa-5360","hostname":"www.debian.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html","label":"lists.debian.org/debian-lts-announce/2023/05/msg00008.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-48337","label":"ubuntu.com/security/CVE-2022-48337","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-48337","label":"www.cve.org/CVERecord?id=CVE-2022-48337","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7027-1","label":"ubuntu.com/security/notices/USN-7027-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-48337","label":"security-tracker.debian.org/tracker/CVE-2022-48337","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48337","label":"nvd.nist.gov/vuln/detail/CVE-2022-48337","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3416-1","DSA-5360-1","MGASA-2023-0081","OPENSUSE-SU-2024:12721-1","RHSA-2023:2626","RHSA-2023:7083","RHSA-2024:1103","RHSA-2024:1408","SUSE-SU-2023:0597-1","SUSE-SU-2023:0598-1","SUSE-SU-2023:0675-1","USN-7027-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:12721-1","SUSE-SU-2023:0597-1","SUSE-SU-2023:0598-1","SUSE-SU-2023:0675-1","USN-7027-1"]},"timeline":[{"kind":"published","date":"2023-02-20T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-18T15:30:23.044Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:05:20.703Z","stale":false,"partial":false}}