CVE-2026-34385: Fleet's Apple MDM profile delivery has second-order SQL Injection that can compromise the database
Summary A critical second-order SQL Injection vulnerability in Fleet's Apple MDM profile delivery pipeline could allow an attacker with a valid MDM enrollment certificate to exfiltrate or modify the contents of the Fleet database, including user credentials, API tokens, and device enrollment secrets.
Published Mar 30, 2026
Affected packages
github.com/fleetdm/fleet/v4
- Ecosystem
- Go
- Affected
- < 4.81.0
- Fixed in
- 4.81.0
- Check
go list -m github.com/fleetdm/fleet/v4
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A critical second-order SQL Injection vulnerability in Fleet's Apple MDM profile delivery pipeline could allow an attacker with a valid MDM enrollment certificate to exfiltrate or modify the contents of the Fleet database, including user credentials, API tokens, and device enrollment secrets.
Impact
If Apple MDM is enabled, an attacker controlling an enrolled device can send a malicious UDID during the MDM Authenticate check-in. The UDID is stored safely via parameterized queries, but is later interpolated directly into SQL when the async worker processes the job. This enables blind, boolean-based, and UNION-based SQL injection across four simultaneous subqueries.
Because Fleet's database driver is configured with multiStatements=true, the attacker can also execute stacked queries, enabling arbitrary writes to the database. This includes inserting new admin accounts, modifying configuration, deploying malicious profiles or scripts to managed devices, and deleting data.
Exploitation requires a valid SCEP-issued enrollment certificate (mTLS), but any enrolled device, including attacker-controlled devices, can exploit this vulnerability.
This issue does not affect instances where Apple MDM is disabled.
Workarounds
If an immediate upgrade is not possible, affected Fleet users should temporarily disable Apple MDM.
For more information
If there are any questions or comments about this advisory:
Send an email to [[email protected]](mailto:[email protected])
Join #fleet in [osquery Slack](https://join.slack.com/t/osquery/shared_invite/zt-h29zm0gk-s2DBtGUTW4CFel0f0IjTEw)
Credits
Fleet thanks@secfox-ai for responsibly reporting this issue.
Credited to prateek-0490.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-q9c5-pp7m-fm2g
Fleet: Unauthenticated download of in-house iOS app binaries via predictable URLs
medium5.3Aug 20, 2026GHSA-rxhg-vcww-2mpw
Fleet: ORDER BY column injection on activity list endpoints
low3.1Aug 20, 2026CVE-2026-48786
Fleet: Observer-class users can view team enroll secrets and credential-bearing configuration via target search endpoint
medium6.5Aug 12, 2026CVE-2026-41262
Fleet DM Vulnerable to Cross-Team Policy Data Exposure via Global Policy Read Endpoint
medium4.3Jun 26, 2026CVE-2026-46370
Fleet has observer-level enrollment secret extraction via ORDER BY oracle on labels host-listing endpoint
medium6.5Jun 12, 2026CVE-2026-46371
Fleet: Observer-level enrollment secret extraction via ORDER BY oracle on Apple MDM commands endpoint
medium6.5Jun 12, 2026
