CVE-2022-48338
published high CVSS 3.1 · 7.3emacs: local command injection in ruby-mode.el
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-1981 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-122 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | emacs | Advisory build | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| Debian | bullseye | emacs | Advisory build | 1:27.1+1-3.1+deb11u2 | DSA-5360-1 |
| Oracle Linux | 9 | emacsaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacsaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| SUSE / openSUSE | SLE-15-SP4 | emacsaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | emacs-common | Advisory build | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux | 9 | emacs-filesystem | Advisory build | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux | 9 | emacs-lucid | Advisory build | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| AlmaLinux | 9 | emacs-nox | Advisory build | 1:27.2-8.el9_2.1 | ALSA-2023:2626 |
| Oracle Linux | 9 | emacsaarch64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacsx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacsx86_64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-commonaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-commonaarch64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-commonx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-commonx86_64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-filesystemaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-filesystemaarch64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-filesystemx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-filesystemx86_64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-lucidaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-lucidaarch64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-lucidx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-lucidx86_64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-noxaarch64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-noxaarch64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-noxx86_64 | Advisory build | 1:27.2-8.el9 | ELSA-2023-2626 |
| Oracle Linux | 9 | emacs-noxx86_64 | Advisory build | 1:27.2-8.el9_2.1 | ELSA-2023-2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacsppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacss390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacssrc | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacsx86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-commonaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-commonppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-commons390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-commonx86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-common-debuginfoaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-common-debuginfoppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-common-debuginfos390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-common-debuginfox86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debuginfoaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debuginfoppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debuginfos390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debuginfox86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debugsourceaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debugsourceppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debugsources390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-debugsourcex86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-filesystemnoarch | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucidaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucidppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucids390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucidx86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucid-debuginfoaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucid-debuginfoppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucid-debuginfos390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-lucid-debuginfox86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-noxaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-noxppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-noxs390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-noxx86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-nox-debuginfoaarch64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-nox-debuginfoppc64le | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-nox-debuginfos390x | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| Red Hat Enterprise Linux | RHEL-9 | emacs-nox-debuginfox86_64 | Advisory build | 1:27.2-8.el9_2.1 | RHSA-2023:2626 |
| SUSE / openSUSE | SLE-15-SP4 | emacsppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacss390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacsx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-elnoarch | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-infonoarch | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-noxaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-noxppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-noxs390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-noxx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-x11aarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-x11ppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-x11s390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacs-x11x86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | etagsaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | etagsppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | etagss390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | SLE-15-SP4 | etagsx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacsaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacsppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacss390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacsx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-elnoarch | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-infonoarch | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-noxaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-noxppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-noxs390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-noxx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-x11aarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-x11ppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-x11s390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | emacs-x11x86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | etagsaarch64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | etagsppc64le | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | etagss390x | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | etagsx86_64 | Advisory build | 27.2-150400.3.6.1 | SUSE-SU-2023:0598-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-77 CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
4- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9a3b08061feea14d6f37685ca1ab8801758bfd1c
- FEDORA-2023-29df561f1d https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/
- FEDORA-2023-5763445abe https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/
- DSA-5360 https://www.debian.org/security/2023/dsa-5360
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d33e5e874e7985472147474588df0fe4f5b276d54985fe3c13f098ae267323f0
- Ingested
- 23 Sep 2026, 08:03:53 UTC
- Source record
- Official CVE record