CVE-2022-48339: Command Injection

Published Feb 20, 2023
·
Updated

An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.

Other sources

GNU Emacs could allow a local attacker to execute arbitrary commands on the system, caused by a flaw in the hfy-istext-command function. By sending a specially-crafted request, an attacker could exploit this vulnerability to execute arbitrary commands on the system.

IBM

Affected Software

3 affected componentsFixes available
gnu Emacs<=28.2
IBM QRadar SIEM<=7.5.0 - 7.5.0 UP6
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 23, 2024
Data Sourced
via Ubuntu·08:42 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·08:43 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

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-48339?

CVE-2022-48339 is a vulnerability discovered in GNU Emacs through version 28.2, involving a command injection vulnerability in htmlfontify.el.

2

What is the severity of CVE-2022-48339?

The severity of CVE-2022-48339 is high, with a severity value of 7.8.

3

How does CVE-2022-48339 affect GNU Emacs?

CVE-2022-48339 affects GNU Emacs versions up to 28.2 and can be exploited through the htmlfontify.el package.

4

How can I fix CVE-2022-48339 in GNU Emacs?

To fix CVE-2022-48339 in GNU Emacs, it is recommended to update to a patched version of GNU Emacs, such as version 28.3 or later when available.

5

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

You can find more information about CVE-2022-48339 on the GNU Emacs commit page and the Debian and Fedora security advisories linked in the references section.

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