{"api_version":"1","generated_at":"2026-04-23T06:20:46+00:00","cve":"CVE-2022-48338","urls":{"html":"https://cve.report/CVE-2022-48338","api":"https://cve.report/api/cve/CVE-2022-48338.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-48338","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-48338"},"summary":{"title":"CVE-2022-48338","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2023-02-20 23:15:00","updated_at":"2023-11-07 03:56:00"},"problem_types":["CWE-77"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/","name":"FEDORA-2023-29df561f1d","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: emacs-28.3-0.rc1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/","name":"FEDORA-2023-5763445abe","refsource":"","tags":[],"title":"[SECURITY] Fedora 38 Update: emacs-28.3-0.rc1.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/","name":"FEDORA-2023-5763445abe","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 38 Update: emacs-28.3-0.rc1.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c","name":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c","refsource":"MISC","tags":[],"title":"emacs.git - Emacs source repository","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2023/dsa-5360","name":"DSA-5360","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5360-1 emacs","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/","name":"FEDORA-2023-29df561f1d","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: emacs-28.3-0.rc1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-48338","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48338","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"48338","vulnerable":"1","versionEndIncluding":"28.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"emacs","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-48338","qid":"160625","title":"Oracle Enterprise Linux Security Update for emacs (ELSA-2023-2626)"},{"cve":"CVE-2022-48338","qid":"181683","title":"Debian Security Update for emacs (DSA 5360-1)"},{"cve":"CVE-2022-48338","qid":"182665","title":"Debian Security Update for emacs (CVE-2022-48338)"},{"cve":"CVE-2022-48338","qid":"241452","title":"Red Hat Update for emacs (RHSA-2023:2626)"},{"cve":"CVE-2022-48338","qid":"284551","title":"Fedora Security Update for emacs (FEDORA-2023-5763445abe)"},{"cve":"CVE-2022-48338","qid":"284626","title":"Fedora Security Update for emacs (FEDORA-2023-29df561f1d)"},{"cve":"CVE-2022-48338","qid":"354790","title":"Amazon Linux Security Advisory for emacs : ALAS2-2023-1981"},{"cve":"CVE-2022-48338","qid":"355223","title":"Amazon Linux Security Advisory for emacs : ALAS2023-2023-122"},{"cve":"CVE-2022-48338","qid":"673032","title":"EulerOS Security Update for emacs (EulerOS-SA-2023-1950)"},{"cve":"CVE-2022-48338","qid":"673038","title":"EulerOS Security Update for emacs (EulerOS-SA-2023-1972)"},{"cve":"CVE-2022-48338","qid":"673126","title":"EulerOS Security Update for emacs (EulerOS-SA-2023-2288)"},{"cve":"CVE-2022-48338","qid":"673165","title":"EulerOS Security Update for emacs (EulerOS-SA-2023-2264)"},{"cve":"CVE-2022-48338","qid":"691076","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for emacs (a75929bd-b6a4-11ed-bad6-080027f5fec9)"},{"cve":"CVE-2022-48338","qid":"905619","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for emacs (13681)"},{"cve":"CVE-2022-48338","qid":"906624","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for emacs (13681-3)"},{"cve":"CVE-2022-48338","qid":"941017","title":"AlmaLinux Security Update for emacs (ALSA-2023:2626)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-48338","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c","refsource":"MISC","name":"https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c"},{"refsource":"DEBIAN","name":"DSA-5360","url":"https://www.debian.org/security/2023/dsa-5360"},{"refsource":"FEDORA","name":"FEDORA-2023-5763445abe","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/"},{"refsource":"FEDORA","name":"FEDORA-2023-29df561f1d","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/"}]}},"nvd":{"publishedDate":"2023-02-20 23:15:00","lastModifiedDate":"2023-11-07 03:56:00","problem_types":["CWE-77"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.3,"baseSeverity":"HIGH"},"exploitabilityScore":1.3,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*","versionEndIncluding":"28.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}