CVE-2026-54000

osquery: Heap buffer overflow in `getProcessCurrentDirectory()` via `processes` table (Windows)

Published Jul 10, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Osquery
Osquery osquery
Vendors & Products Osquery
Osquery osquery
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'}

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 14, 2026, 3:55 AM
Reserved
Jun 11, 2026, 4:34 PM
Status
Deferred
Published
Jul 10, 2026, 4:16 PM
Modified
Jul 14, 2026, 5:16 AM