# CVE-2026-46371: Fleet SQL injection in Apple MDM commands endpoint

Source: https://junglewise.ai/threats/cve-2026-46371-fleet-sql-injection-in-apple-mdm-commands-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-26. Updated: 2026-06-12  
License: CC BY 4.0 with a link back

CVE-2026-46371 · Severity: medium · CVSS 6.5 · Published 2026-08-26

A vulnerability in Fleet, an open-source device management platform, allows low-privileged users to extract sensitive information such as host enrollment secrets and notification tokens. By exploiting a flaw in how the system lists Apple MDM commands, an attacker could impersonate managed devices, submit fake data, or retrieve pending scripts. This could lead to unauthorized access to managed computers and the ability to interfere with corporate device security policies.

Technologies: [github.com/fleetdm/fleet/v4 (Go)](https://junglewise.ai/threats/technologies/github-com-fleetdm-fleet-v4). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-46371 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-46371 being exploited in the wild.

**How severe is CVE-2026-46371?** Medium severity, with a CVSS score of 6.5, published 26 August 2026.

**Which products and versions are affected?** github.com/fleetdm/fleet/v4 (Go) <= 4.84.1, SEMVER:introduced=0,fixed=4.84.2.

**Is there a fix for CVE-2026-46371?** Yes. github.com/fleetdm/fleet/v4 (Go): upgrade to 4.84.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-46371 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-46371?** Check whether you run github.com/fleetdm/fleet/v4 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/fleetdm/fleet/v4 (Go): upgrade to 4.84.2 or later

  ```sh
  go get github.com/fleetdm/fleet/v4@v4.84.2
  ```


## Technical details

The `GET /api/v1/fleet/mdm/apple/commands` endpoint is vulnerable to a blind SQL injection (specifically an ORDER BY oracle). The endpoint uses a deprecated helper that fails to validate the `order_key` parameter against an allowlist, allowing it to reference any column in the joined `hosts` and `nano_enrollments` tables. An authenticated attacker with Observer-level privileges can use the `after` pagination parameter to perform a binary search, extracting sensitive values like `node_key` or `orbit_node_key` character-by-character based on the presence or absence of results. Successful exploitation allows host impersonation and retrieval of pending MDM commands. The issue is fixed in version 4.84.2.

## Affected products

- Fleet Device Management (FleetDM) Fleet <= 4.84.1

## Identifiers

- CVE-2026-46371
- GHSA-x4qr-qw6h-wvxq
- GO-2026-5739

## Timeline

- 2026-06-11: disclosed
- 2026-06-11: advisory
- 2026-06-12: patched: Version 4.84.2 released

## References

- [https://github.com/fleetdm/fleet/security/advisories/GHSA-x4qr-qw6h-wvxq](https://github.com/fleetdm/fleet/security/advisories/GHSA-x4qr-qw6h-wvxq)
- [https://api.github.com/repos/fleetdm/fleet/security-advisories/GHSA-x4qr-qw6h-wvxq](https://api.github.com/repos/fleetdm/fleet/security-advisories/GHSA-x4qr-qw6h-wvxq)

## Related threats

- [Fleet SQL injection in Okta conditional access endpoint](https://junglewise.ai/threats/cve-2026-54245-fleet-sql-injection-in-okta-conditional-access-endpoint)
- [Fleet SQL injection in labels host-listing endpoint](https://junglewise.ai/threats/cve-2026-46370-fleet-sql-injection-in-labels-host-listing-endpoint)
- [Fleet information disclosure in target search endpoint](https://junglewise.ai/threats/cve-2026-48786-fleet-information-disclosure-in-target-search-endpoint)
- [Fleet DM cross-team policy data exposure in global policy endpoint](https://junglewise.ai/threats/cve-2026-41262-fleet-dm-cross-team-policy-data-exposure-in-global-policy)
- [GO-2026-6269 - Fleet: ORDER BY column injection on activity list endpoints in github.com/fleetdm/fleet](https://junglewise.ai/threats/go-2026-6269-fleet-order-by-column-injection-on-activity-list-endpoints-675562df)
