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 in osquery. The overflow occurs in getProcessCurrentDirectory() because the lengths of the process command‑line and current‑directory strings in the PEB structure are not validated before use. If an attacker forces the overflow, it can enable a privilege escalation from standard user level to SYSTEM, giving the attacker full control of the machine. This flaw is a classic heap-based buffer overflow (CWE-122).

Affected Systems

Versions of osquery earlier than 5.23.1 running on Windows are affected. The issue was addressed in the 5.23.1 release and applies to all builds that include the processes table on Windows.

Risk and Exploitability

The CVSS score of 7.0 places the vulnerability in the high‑severity range. The EPSS score of less than 1% indicates a very low likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, meaning no public exploits are known. The attack vector is local; an attacker must have the ability to run osquery and execute a crafted query. Successful exploitation could result in complete system‑wide privilege escalation to SYSTEM if the attacker is able to trigger the buffer overflow.

Generated by OpenCVE AI on August 1, 2026 at 12:41 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 August 1, 2026 at 12:41 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

Status : Deferred

Published: 2026-07-10T16:16:32.340

Modified: 2026-07-14T05:16:18.207

Link: CVE-2026-54000

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T12:45:03Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow