CVE-2026-46371 Fleet: Observer-level enrollment secret extraction via ORDER BY oracle on Apple MDM commands endpoint

Medium 6.5 Published Updated

An attacker with Observer role can extract enrollment secrets via SQL injection in the MDM commands endpoint, enabling host impersonation and data access.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-46371?

CVE-2026-46371 is a medium-severity SQL injection vulnerability in fleetdm fleet, published on 26 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Fleet is an open-source device management platform built on osquery. In versions up to and including 4.84.1, the Apple MDM commands listing endpoint (GET /api/v1/fleet/mdm/apple/commands) allowed an authenticated user with the lowest-privilege Observer role to extract sensitive values from joined database tables, including host enrollment secrets and Apple Push Notification Service tokens, through a sort-order oracle. The endpoint accepted a user-supplied order_key parameter that was not validated against a column allowlist, and because the underlying query joins the hosts and nano_enrollments tables, an attacker could set the sort column to a sensitive field and combine it with the cursor-based after parameter to binary-search the value one character at a time, with the presence or absence of results revealing each character even though the value never appeared in the response. With extracted node_key or orbit_node_key values an attacker could impersonate enrolled hosts to Fleet's osquery and Orbit endpoints, submit fabricated host data, and retrieve pending scripts and commands. This issue is fixed in version 4.84.2.

Weakness: CWE-89, CWE-200

Which versions are affected by CVE-2026-46371?

3 open source packages ship an affected version, including github.com/fleetdm/fleet/v4.

PackageAffectedFixed in
github.com/fleetdm/fleet/v4 GoAll versions4.84.2
github.com/fleetdm/fleet/v4 GoAll versions4.84.2
github.com/fleetdm/fleet/v4 GoAll versions4.84.2

How do I fix CVE-2026-46371?

Upgrade github.com/fleetdm/fleet/v4 to 4.84.2 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-46371 being exploited?

There is no known exploitation of CVE-2026-46371 in the wild and no public exploit code.

Sources

Also known as GHSA-x4qr-qw6h-wvxq, GO-2026-5739.

Is CVE-2026-46371 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free