# CVE-2024-39331: CVE-2024-39331

Status: published. Published: 2024-06-23. Updated: 2026-11-03.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: cve@mitre.org) — https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: af854a3a-2127-422b-91ae-364da2661108) — https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8

## Affected products and versions

- n/a / n/a: Version not specified (affected). Source: CNA: mitre
- gnu / emacs: ≥ 0; < 29.4 (affected, custom). Source: ADP: CISA-ADP

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "29.4",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: ADP: CISA-ADP

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: NVD: 134c704f-9b21-4f2e-91b3-4a467353bcc0

- CISA KEV: No listing in collected sources

- EPSS: 1.32% as of 2026-11-03; percentile 70.94%

- SSVC: exploitation none; automatable yes; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-94

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 (CNA: mitre)

- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ (CNA: mitre)

- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html (CNA: mitre)

- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 (CNA: mitre)

- https://www.openwall.com/lists/oss-security/2024/06/23/1 (CNA: mitre)

- https://www.openwall.com/lists/oss-security/2024/06/23/2 (CNA: mitre)

- https://news.ycombinator.com/item?id=40768225 (CNA: mitre)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html (CNA: mitre; mailing-list)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html (CNA: mitre; mailing-list)

- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 (ADP: CVE; x_transferred)

- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ (ADP: CVE; x_transferred)

- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html (ADP: CVE; x_transferred)

- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 (ADP: CVE; x_transferred)

- https://www.openwall.com/lists/oss-security/2024/06/23/1 (ADP: CVE; x_transferred)

- https://www.openwall.com/lists/oss-security/2024/06/23/2 (ADP: CVE; x_transferred)

- https://news.ycombinator.com/item?id=40768225 (ADP: CVE; x_transferred)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html (ADP: CVE; mailing-list, x_transferred)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html (ADP: CVE; mailing-list, x_transferred)

- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 (cve@mitre.org; Release Notes)

- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 (cve@mitre.org; Mailing List, Patch)

- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ (cve@mitre.org; Mailing List)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html (cve@mitre.org; Mailing List)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html (cve@mitre.org; Mailing List)

- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html (cve@mitre.org; Mailing List)

- https://news.ycombinator.com/item?id=40768225 (cve@mitre.org; Mailing List)

- https://www.openwall.com/lists/oss-security/2024/06/23/1 (cve@mitre.org; Mailing List)

- https://www.openwall.com/lists/oss-security/2024/06/23/2 (cve@mitre.org; Mailing List)

- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 (af854a3a-2127-422b-91ae-364da2661108; Release Notes)

- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Patch)

- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://news.ycombinator.com/item?id=40768225 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://www.openwall.com/lists/oss-security/2024/06/23/1 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

- https://www.openwall.com/lists/oss-security/2024/06/23/2 (af854a3a-2127-422b-91ae-364da2661108; Mailing List)

## Provenance

- CNA: mitre: https://www.cve.org/CVERecord?id=CVE-2024-39331; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-39331; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-39331; retrieved 2026-11-03; source updated Not reported

Revision: 9a927924e811e117cd93c5f582c16ba853ba9a50f723f9c70bfc750138673895

Canonical: https://y2.dev/cve/CVE-2024-39331

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.