Description
osquery is a SQL powered operating system instrumentation, monitoring, and analytics framework. Prior to 5.23.1, an unprivileged attacker can read the contents of an osquery file carve until the carve completes and the temporary files are deleted because in-progress carve directories are not created with private permissions. If the carve targets a directory that the attacker controls, arbitrary file reads are possible, such as sensitive local files. This issue is fixed in version 5.23.1.
Published: 2026-07-10
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An unprivileged user running osquery can read the temporary files created during a file carve operation before the carve process finishes and the files are removed. The reading window is limited to the duration of the carve, but during that time the user can exfiltrate any data stored in the carve directory, including sensitive local files if the attacker controls the target directory. This vulnerability is caused by insufficient access control on temporary carve directories (CWE‑279), a timestamp race that can lead to undefined behavior (CWE‑378), and an ordinal race condition (CWE‑379).

Affected Systems

All installations of osquery older than version 5.23.1 are affected. The issue is present in every build that creates carve‑wise temporary directories without setting the mode to private or otherwise restricting access. The warning remediation was incorporated starting with osquery 5.23.1.

Risk and Exploitability

The CVSS score is 4.4, indicating a low impact. The EPSS score is less than 1%, indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog, suggesting it was not actively exploited at the time of analysis. The likely attack vector is osquery as an unprivileged user may create a carve that points to a directory they can control, read the temporary files while the carve is in progress, and retrieve sensitive data until the carve completes.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to osquery 5.23.1 or newer to apply the fix.
  • If upgrade is not immediately possible, carve target directories to locations that do not grant write access to unprivileged users and enforce restrictive ownership and permissions on the directory before beginning a carve.
  • Disable the carve feature in configurations when it is not required for legitimate use cases.
  • Implement monitoring to detect unexpected temporary files in carve directories and reject file transmissions that occur before a carve has completed.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, '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, an unprivileged attacker can read the contents of an osquery file carve until the carve completes and the temporary files are deleted because in-progress carve directories are not created with private permissions. If the carve targets a directory that the attacker controls, arbitrary file reads are possible, such as sensitive local files. This issue is fixed in version 5.23.1.
Title osquery: Unprivileged users can temporarily read file carve contents
Weaknesses CWE-279
CWE-378
CWE-379
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T19:03:08.593Z

Reserved: 2026-05-13T19:53:47.922Z

Link: CVE-2026-46388

cve-icon Vulnrichment

Updated: 2026-07-10T19:03:04.501Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-279

    Incorrect Execution-Assigned Permissions

  • CWE-378

    Creation of Temporary File With Insecure Permissions

  • CWE-379

    Creation of Temporary File in Directory with Insecure Permissions