CVE-2022-48338

EUVD-2022-51038
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.
Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.3 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CISA-ADPADP
7.3 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 31%
Affected Products (NVD)
VendorProductVersion
gnuemacs
𝑥
≤ 28.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
emacs
bookworm
1:28.2+1-15+deb12u3
fixed
bookworm (security)
1:28.2+1-15+deb12u3
fixed
bullseye
1:27.1+1-3.1+deb11u5
fixed
bullseye (security)
1:27.1+1-3.1+deb11u5
fixed
buster
not-affected
sid
1:29.4+1-3
fixed
trixie
1:29.4+1-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
emacs
bionic
dne
focal
not-affected
jammy
needed
kinetic
ignored
lunar
not-affected
mantic
not-affected
noble
not-affected
trusty
ignored
xenial
ignored
emacs23
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
ignored
xenial
dne
emacs24
bionic
dne
focal
dne
jammy
dne
kinetic
dne
trusty
not-affected
xenial
not-affected
emacs25
bionic
not-affected
focal
dne
jammy
dne
kinetic
dne
trusty
dne
xenial
dne
xemacs21
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
kinetic
ignored
lunar
ignored
mantic
ignored
noble
needs-triage
trusty
ignored
xenial
needs-triage
xemacs21-packages
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
kinetic
ignored
lunar
ignored
mantic
ignored
noble
needs-triage
trusty
ignored
xenial
needs-triage