CVE-2026-9279

Shell command injection in Logseq

Published Jun 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Logseq exposes an IPC handler that allows the renderer process to execute shell commands. While an allowlist restricts the command name (e.g. `git`, `pandoc`, `grep`), the argument string is concatenated with the command and passed to `child_process.spawn` with the `shell: true` option, allowing shell metacharacters in the arguments to bypass the allowlist. An attacker with JavaScript execution in the renderer (e.g. via XSS or a malicious plugin) can execute arbitrary shell commands with the privileges of the Logseq process, leading to remote code execution on the host.
While only version v0.10.15 was tested and confirmed as vulnerable, status of other versions is unknown since this issue was not addressed by a patch.

Analysis

AI-generated

Technical impact

Logseq exposes an insecure inter‑process communication (IPC) interface that allows the renderer process to run shell commands. The handler restricts the command name to a whitelist (git, pandoc, grep), but it concatenates unsanitized argument strings and then passes them to child_process.spawn with shell:true, so shell metacharacters can bypass the allow list. An attacker who can execute JavaScript in the renderer, such as through a cross‑site scripting vector or a malicious plugin, can run arbitrary shell commands with the permissions of the Logseq process, achieving remote code execution on the host machine.

Affected Systems

The vulnerability has been confirmed only in Logseq version 0.10.15. It is unclear whether earlier or later releases are affected. No other vendor or product is reported to be impacted.

Risk and Exploitability

The CVSS base score is 8.7, indicating high severity. Because the attack requires JavaScript execution inside Logseq, the likelihood of exploitation depends on the presence of XSS flaws or exposed plugin mechanisms; without such a vector the risk is lower, but when present it can lead to full system compromise. The EPSS score is unavailable, so the probability of exploitation in the wild is uncertain. The vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Restrict or disable JavaScript execution in the Logseq renderer, such as by blocking third‑party plugins or using a safe‑mode configuration, to eliminate the attacker’s ability to inject payloads.
  • Run Logseq with the lowest privilege level that still allows normal usage—preferably a non‑administrator user account—so that any shell command executed under the RCE has limited access.
  • Monitor the Logseq process for the creation of child processes or the execution of shell commands using system monitoring or security software, and investigate any unexpected activity.
  • Keep an eye on the vendor’s security advisories and apply a patch or a newer version of Logseq as soon as the issue is resolved.

Generated by OpenCVE AI on June 9, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Logseq
Logseq logseq
Vendors & Products Logseq
Logseq logseq
Type Values Removed Values Added
Description Logseq exposes an IPC handler that allows the renderer process to execute shell commands. While an allowlist restricts the command name (e.g. `git`, `pandoc`, `grep`), the argument string is concatenated with the command and passed to `child_process.spawn` with the `shell: true` option, allowing shell metacharacters in the arguments to bypass the allowlist. An attacker with JavaScript execution in the renderer (e.g. via XSS or a malicious plugin) can execute arbitrary shell commands with the privileges of the Logseq process, leading to remote code execution on the host. While only version v0.10.15 was tested and confirmed as vulnerable, status of other versions is unknown since this issue was not addressed by a patch.
Title Shell command injection in Logseq
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Jun 9, 2026, 2:38 PM
Reserved
May 22, 2026, 1:55 PM
Status
Deferred
Published
Jun 9, 2026, 2:16 PM
Modified
Jul 23, 2026, 8:10 AM