CVE-2022-48338

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48338
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48338.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48338
Downstream
Related
Published
2023-02-20T23:15:12Z
Modified
2025-11-11T03:35:25Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / cgit.git.savannah.gnu.org/cgit/emacs.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/emacs.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
9a3b08061feea14d6f37685ca1ab8801758bfd1c

Git / git.savannah.gnu.org/git/emacs.git

Affected ranges

Type
GIT
Repo
https://git.savannah.gnu.org/git/emacs.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected