Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain standard-user foothold on Windows host
-
DeliveryLaunch process with oversized PEB string lengths
-
Exploitosquery SYSTEM agent queries processes table
-
ExecutionTrigger heap out-of-bounds write (CWE-122)
-
ImpactAchieve 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 |
| 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
osquery before version 4.4.0 enables a privilege escalation vulnerability. Rated high severity (CVSS 8.2), this vulnerab
An issue was discovered in osquery. Rated high severity (CVSS 7.8), this vulnerability is no authentication required, lo
osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. Rated medium severity (C
Incorrect validation of the TLS SNI hostname in osquery versions after 2.9.0 and before 4.2.0 could allow an attacker to
In some configurations an attacker can inject a new executable path into the extensions.load file for osquery and hard l
Local privilege escalation in osquery on Windows prior to 5.23.1 lets a standard user escalate to SYSTEM by planting a m
File carve operations in osquery prior to 5.23.1 expose sensitive data due to world-readable temporary directory permiss
EUVD-2026-42919
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB