CVE-2022-48339

emacs: command injection vulnerability in htmlfontify.el

Published Feb 20, 2023 CVSS 3.1 · 7.8 High EPSS 1.1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3416-1 emacs security update
Debian DSA Debian DSA DSA-5360-1 emacs security update
EUVD EUVD EUVD-2022-51039 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.
Ubuntu USN Ubuntu USN USN-5955-1 Emacs vulnerability
Ubuntu USN Ubuntu USN USN-7027-1 Emacs vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-1116
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 18, 2025, 3:19 PM
Reserved
Feb 20, 2023, 12:00 AM
Status
Modified
Published
Feb 20, 2023, 11:15 PM
Modified
Jun 17, 2026, 5:15 AM
Severity
Moderate
Public date
Feb 21, 2023, 12:00 AM