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

2 affected componentsFixes available
gnu Emacs<=28.2
debian/emacs
1:27.1+1-3.1+deb11u51:27.1+1-3.1+deb11u61:28.2+1-15+deb12u41:30.1+1-5

Event History

Feb 20, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·11:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 21, 2023
Data Sourced
via Red Hat·06:23 AM
DescriptionSeverityAffected Software
Sep 19, 2024
Data Sourced
via Launchpad·08:43 PM
Description
Sep 23, 2024
Data Sourced
via Ubuntu·08:42 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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