CVE-2022-48339
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-48339 is a command injection vulnerability discovered in GNU Emacs' htmlfontify.el component. The vulnerability was identified in February 2023 and affects Emacs versions through 28.2. The issue exists in the hfy-istext-command function, where parameters file and srcdir from external input are not properly sanitized (NVD, Red Hat CVE).

Technical details

The vulnerability exists in the hfy-text-p function within htmlfontify.el, where the file and srcdir parameters are not properly escaped before being used in shell commands. If a file name or directory name contains shell metacharacters, it could lead to arbitrary code execution. The fix involves using shell-quote-argument to properly escape the file path before it's used in shell commands (Emacs Git).

Impact

If exploited, this vulnerability allows an attacker to execute arbitrary shell commands through specially crafted file or directory names when using the htmlfontify functionality (Red Hat CVE, Debian LTS).

Mitigation and workarounds

The vulnerability has been fixed in Emacs 28.3-rc1. Various Linux distributions have released security updates to address this issue, including Red Hat Enterprise Linux, Fedora, and Debian. Users are advised to upgrade their Emacs packages to the latest available version (Fedora Update, Debian Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management