# CVE-2022-48338

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-20 · Modified: 2025-03-18
- Aliases: UBUNTU-CVE-2022-48338, DEBIAN-CVE-2022-48338
- Record: https://cvemate.com/vulnerability/CVE-2022-48338 · JSON: https://cvemate.com/vulnerability/CVE-2022-48338/json

## Description

```text
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.
```

## Signals

- CVSS: 7.3 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.684%, percentile 77.784%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian emacs (Debian): \< 1:28.2+1-11
- ubuntu emacs (Ubuntu): \< 1:27.1+1-3ubuntu5.2
- ubuntu xemacs21 (Ubuntu): All versions (No fix recorded)
- ubuntu xemacs21-packages (Ubuntu): All versions (No fix recorded)
- gnu emacs: ≤ 28.2

## References

- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c>
- <https://www.debian.org/security/2023/dsa-5360>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/>
- <https://ubuntu.com/security/CVE-2022-48338>
- <https://www.cve.org/CVERecord?id=CVE-2022-48338>
- <https://ubuntu.com/security/notices/USN-7027-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-48338>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-48338>

---

Data as of 2026-12-05T03:12:28.130Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
