Android security tags, read closely by Lightrion

CVE-2026-59011 AI-generated analysis

platform/packages/providers/MediaProvider, MediaProvider query path (queryInternal projection redaction) and util/SQLiteQueryBuilder

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (7 corrections). Verify against the commit before relying on it.

MediaProvider.queryInternal now validates the projection against strict columns up front, expands null and legacy "*" projections, and redacts latitude, longitude and oem metadata in every projection element using word-boundary matching with alias preservation. Before, it used an exact-string, first-occurrence replacement that aggregate wrappers, repeated columns and wildcards could bypass.

Root cause

In MediaProvider.queryInternal, two redactions relied on hasColumnsToFilterInProjection and updateProjectionToFilterColumns: LATITUDE/LONGITUDE (when indexMediaLatitudeLongitude() is on and the caller is not MediaProvider itself) and OEM_METADATA (when the caller lacks the OEM metadata permission). hasColumnsToFilterInProjection only did an exact List.contains() of the lowercased column name against the projection elements. updateProjectionToFilterColumns replaced only the first matching element (indexOf) with "NULL AS <column>". Three cases were therefore missed and returned the real value: a column embedded in an expression (for example an aggregate such as MIN(latitude)), the second occurrence of a repeated column, and an explicit "*" wildcard.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings