{"schemaVersion":3,"id":"CVE-2022-48338","aliases":["UBUNTU-CVE-2022-48338","DEBIAN-CVE-2022-48338"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.","dates":{"published":"2023-02-20T00:00:00.000Z","modified":"2025-03-18T15:21:22.243Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01639,"percentile":0.7603,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01639},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01639,"percentile":0.7603}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01639,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01639,"percentile":0.7603}]},"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-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.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:27.1+1-3ubuntu5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:27.1+1-3ubuntu5.2","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":"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":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c","label":"git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c","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.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-48338","label":"ubuntu.com/security/CVE-2022-48338","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-48338","label":"www.cve.org/CVERecord?id=CVE-2022-48338","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-48338","label":"security-tracker.debian.org/tracker/CVE-2022-48338","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48338","label":"nvd.nist.gov/vuln/detail/CVE-2022-48338","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5360-1","MGASA-2023-0081","OPENSUSE-SU-2024:12721-1","RHSA-2023:2626","SUSE-SU-2023:0598-1","USN-7027-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:12721-1","SUSE-SU-2023:0598-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:21:22.243Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:04:52.806Z","stale":false,"partial":false}}