Skip to main content

osquery EUVDEUVD-2026-42919

| CVE-2026-54000 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-07-10 GitHub_M
7.0
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain standard-user foothold on Windows host
  2. Delivery
    Launch process with oversized PEB string lengths
  3. Exploit
    osquery SYSTEM agent queries processes table
  4. Execution
    Trigger heap out-of-bounds write (CWE-122)
  5. Impact
    Achieve code execution as SYSTEM

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local code execution as a standard (unprivileged) user on a Windows host running a vulnerable osquery (<5.23.1); the attacker must be able to start a process and control its PEB command-line and current-directory string Length values. Exploitation is gated on the osquery agent - typically running as SYSTEM - actually executing a query against the Windows processes table that reaches the malicious process (the UI:P/passive requirement), so it only fires when such a query runs on a schedule, via a query pack, or through distributed/ad-hoc queries. Limiting factors: Windows-only, no remote or network vector, requires a pre-existing local foothold, requires osquery to be deployed and querying the processes table, and delivers escalation only up to SYSTEM (no subsequent-system/scope impact per SC:N/SI:N/SA:N).

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H, base 7.0) is internally consistent with the description: local vector, low attacker privileges required, and a passive user-interaction/context requirement (the SYSTEM-level osquery agent must run the process query). Impact is high across confidentiality, integrity, and availability on the vulnerable system, matching a standard-user-to-SYSTEM escalation. No EPSS score, KEV listing, or POC was provided, so real-world exploitation pressure appears low-to-moderate today: exploitation is gated on osquery actually being deployed AND periodically querying the processes table, which is common in security-monitoring deployments but not universal. This is a legitimate patch priority for environments running osquery on Windows as a SYSTEM service, but not an internet-facing, mass-exploitable issue - the local-only vector and dependency on the monitoring agent's scheduled queries meaningfully limit blast radius. Note the tension between raw impact (SYSTEM compromise) and low practical reachability (requires local foothold plus a triggering query), so prioritize based on osquery deployment rather than CVSS number alone.

Exploit ScenarioDerived

A standard-user attacker with an interactive or code-execution foothold on a Windows host launches a process whose PEB command-line or current-directory UNICODE_STRING Length fields are set to oversized values. When the osquery agent (running as SYSTEM) next executes a scheduled or distributed query against the processes table, it reads those crafted lengths and performs a heap out-of-bounds write, which a skilled attacker can shape into code execution in the SYSTEM context. No public POC has been identified, and the local vector plus low complexity make this feasible for an attacker who already has a foothold and can wait for or induce a process query.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 10, 2026

Local privilege escalation in osquery on Windows prior to 5.23.1 lets a standard (unprivileged) user escalate to SYSTEM by planting a maliciously crafted process whose Process Environment Block (PEB) contains oversized command-line or current-directory strings. When the osquery agent - typically running as SYSTEM - queries the processes table against that process, unchecked PEB string lengths trigger a heap-based out-of-bounds write (CWE-122). No public exploit has been identified at time of analysis, and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: 5.23.1 - upgrade all Windows osquery deployments to 5.23.1 or later, which adds bounds checking on the PEB string lengths (see commit 3d457c412eb0c986b0c37d8903edae8bc9f9e246 via PR https://github.com/osquery/osquery/pull/8934 and advisory https://github.com/osquery/osquery/security/advisories/GHSA-4r78-6hg6-33gg). Where immediate upgrade is not possible, the practical compensating control is to stop or restrict queries against the processes table on Windows endpoints - remove processes from scheduled query packs and any ad-hoc/distributed query paths, since the out-of-bounds write is only triggered when osquery reads a crafted process's command-line/current-directory fields; the trade-off is loss of process-inventory telemetry that many detections rely on. Additionally limit which users can create arbitrary processes on sensitive hosts and monitor for anomalous osquery crashes (which may indicate exploitation attempts). Do not rely on the workaround long-term, as it disables a core monitoring capability.

Affected VersionsENISA

osquery < 5.23.1

Affected Packages

euvd osquery fix: 5.23.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

osquery exposes operating-system state as SQL-queryable virtual tables; the Windows processes table enriches each row with a process's command line and current working directory. On Windows these values are not exposed directly but read out of the target process's Process Environment Block (PEB) - specifically the RTL_USER_PROCESS_PARAMETERS UNICODE_STRING fields, where each string carries an attacker-influenceable Length field. The affected component (cpe:2.3:a:osquery:osquery) trusts those PEB-supplied lengths without bounds-validating them before copying into a heap buffer, so a process crafted with inflated Length values produces a heap out-of-bounds write. CWE-122 (heap-based buffer overflow) captures the root cause: a length/size value taken from untrusted input drives a memory copy into an undersized heap allocation.

Know when Osquery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.0 HIGH
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
vuln.today AI 7.3 HIGH

Local standard-user access (PR:L) with a triggering process query needed (UI:R); SYSTEM-level heap write yields high C/I/A; scope kept S:U to match vendor SC/SI/SA:N.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 10, 2026 - 17:01 EUVD
CVE Published
Jul 10, 2026 - 14:51 cve.org
HIGH 7.0

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

osquery on Windows prior to version 5.23.1 contains a privilege escalation vulnerability that allows standard users to gain SYSTEM-level access, potentially undermining endpoint security monitoring and enabling full system compromise. Windows systems running vulnerable osquery versions are at risk wherever standard users have local access. Leadership should prioritize remediation as this vulnerability could eliminate security visibility and facilitate unauthorized system access.

Business Impact: High
Compensating Controls

Restrict standard user local logon access on osquery-running systems; deploy EDR to detect process environment block manipulation and anomalous process creation; enforce application whitelisting and code integrity policies to prevent malicious process spawning; implement network segmentation to contain potential lateral movement; disable osquery on systems where endpoint monitoring is not operationally critical; establish vendor communication monitoring for patch release notification.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
widely used endpoint monitoring agent, but not on every host
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy