CVE Catalog

CVE-2024-39331

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.32%

71th percentile - higher than 71% of all known CVEs

Summary

In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function, such as shell-command-to-string. This affects Org Mode before 9.7.5.

Risk Assessment

Opening a crafted Org document may lead to arbitrary shell command execution in the context of the Emacs user. This poses a serious risk of system compromise via malicious content.

Recommendation

Upgrade Emacs to version 29.4 or later and Org Mode to version 9.7.5 or later. Avoid opening untrusted Org files until patched.

Related vulnerabilities

Original NVD description (English source)

In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function, such as shell-command-to-string. This affects Org Mode before 9.7.5.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS