Apache Polaris: No protection on `write.metadata.path`
Apache Software Foundation Apache Polaris
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.polaris:polaris-runtime-service Maven |
|
|
Original description
In Apache Iceberg, the table's metadata files are control files: they tell readers which data files belong to the table and which table version to read.
`write.metadata.path` is an optional table property that tells Polaris where to write those metadata files. For a table already registered in a Polaris-managed catalog, changing only that property through an `ALTER TABLE`-style settings change (not a row-level `INSERT`, `SELECT`, `UPDATE`, or `DELETE`) bypasses the commit-time branch that is supposed to revalidate storage locations.
The full persisted / credential-vending variant requires the affected catalog to have `polaris.config.allow.unstructured.table.location=true`, with `allowedLocations` broad enough to include the attacker-chosen target.