All reports
Medium

emacs: command injection vulnerability in htmlfontify.el

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-48339

Probability of exploitation in the next 30 days: 1.13%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Emacs package. If a file name or directory name contains shell metacharacters, arbitrary code may be executed.