CVE-2022-48338: Command Injection
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/emacsto a version that resolves this vulnerability.Fixed in 1:28.2+1-15+deb12u4Fixed in 1:30.1+1-6+deb13u1Fixed in 1:30.2+1-11 - Upgrade
Upgrade
debian/emacsto a version that resolves this vulnerability.Fixed in 1:28.2+1-11 - Upgrade
Upgrade
GNU Emacsto a version that resolves this vulnerability.Patch 9a3b08061feea14d6f37685ca1ab8801758bfd1c
Event History
Frequently Asked Questions
What is CVE-2022-48338?
CVE-2022-48338 is a vulnerability discovered in GNU Emacs through version 28.2.
What is the severity of CVE-2022-48338?
The severity of CVE-2022-48338 is high with a CVSS score of 7.3.
How does CVE-2022-48338 affect GNU Emacs?
CVE-2022-48338 affects GNU Emacs versions up to 28.2.
Is there a fix available for CVE-2022-48338?
Yes, a fix is available. Please refer to the references for more information.
Where can I find more information about CVE-2022-48338?
You can find more information about CVE-2022-48338 in the provided references.