CVE-2022-48338: Command Injection

Published Feb 20, 2023
·
Updated

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

5 affected componentsFixes available
GNU Emacs<=28.2
debian/emacs<1:28.2+1-11
1:28.2+1-11
debian/emacs<1:28.2+1-11
1:28.2+1-11
debian/emacs<1:28.2+1-11
1:28.2+1-11
debian/emacs
1:28.2+1-15+deb12u41:30.1+1-6+deb13u11:30.2+1-11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/emacs to 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
  2. Upgrade

    Upgrade debian/emacs to a version that resolves this vulnerability.

    Fixed in 1:28.2+1-11
  3. Upgrade

    Upgrade GNU Emacs to a version that resolves this vulnerability.

    Patch 9a3b08061feea14d6f37685ca1ab8801758bfd1c

Event History

Feb 20, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·11:15 PM
Affected Software
Feb 21, 2023
Data Sourced
via Red Hat·06:23 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-48338?

CVE-2022-48338 is a vulnerability discovered in GNU Emacs through version 28.2.

2

What is the severity of CVE-2022-48338?

The severity of CVE-2022-48338 is high with a CVSS score of 7.3.

3

How does CVE-2022-48338 affect GNU Emacs?

CVE-2022-48338 affects GNU Emacs versions up to 28.2.

4

Is there a fix available for CVE-2022-48338?

Yes, a fix is available. Please refer to the references for more information.

5

Where can I find more information about CVE-2022-48338?

You can find more information about CVE-2022-48338 in the provided references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203