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.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48339.json"
}{
"extracted_events": [
{
"range": [
{
"fixed": "1b4dc4691c1f87fc970fbe568b43869a15ad0d4c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "28.2"
}
],
"source": "DESCRIPTION"
},
{
"cpe": "cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "28.2"
}
],
"source": "CPE_RANGE"
}
]
}