Description
osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. Prior to 5.23.1, on Windows, a local unprivileged attacker can cause a heap buffer out-of-bounds write if there is a query of the processes table targeting a maliciously crafted process, due to unchecked PEB string lengths in process command-line and current-directory reads. If exploited successfully, this could allow a potential local privilege escalation from standard user to SYSTEM. This issue is fixed in version 5.23.1.
Published: 2026-07-10
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A local unprivileged user on Windows can trigger a heap buffer overflow when querying the processes table with a maliciously crafted entry. The overrun occurs in getProcessCurrentDirectory() because lengths read from the process command‑line and current‑directory fields in the PEB structure are unchecked. If an attacker forces the overflow, they could elevate from a standard user to SYSTEM, granting full system control.

Affected Systems

Users running osquery versions earlier than 5.23.1 on Windows are affected. The heap overflow issue is fixed in version 5.23.1 and newer.

Risk and Exploitability

The CVSS score of 7.0 indicates high severity. The EPSS score of less than 1% shows a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating no publicly known exploits. The attack vector is local; exploitation requires a local user who can run osquery and execute a crafted query, potentially resulting in system‑wide privilege escalation if successful.

Generated by OpenCVE AI on July 29, 2026 at 10:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade osquery to version 5.23.1 or later.
  • If an upgrade cannot be performed immediately, restrict unprivileged users from running osquery or disable access to the processes table.
  • Implement application whitelisting or user‑level controls to prevent local users from executing osquery.

Generated by OpenCVE AI on July 29, 2026 at 10:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 10 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Osquery
Osquery osquery
Vendors & Products Osquery
Osquery osquery

Fri, 10 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
Description osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. Prior to 5.23.1, on Windows, a local unprivileged attacker can cause a heap buffer out-of-bounds write if there is a query of the processes table targeting a maliciously crafted process, due to unchecked PEB string lengths in process command-line and current-directory reads. If exploited successfully, this could allow a potential local privilege escalation from standard user to SYSTEM. This issue is fixed in version 5.23.1.
Title osquery: Heap buffer overflow in `getProcessCurrentDirectory()` via `processes` table (Windows)
Weaknesses CWE-122
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-14T03:55:44.196Z

Reserved: 2026-06-11T16:34:11.635Z

Link: CVE-2026-54000

cve-icon Vulnrichment

Updated: 2026-07-10T20:48:16.399Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:00:13Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow