# CVE-2026-42812: Apache Polaris: No protection on \`write.metadata.path\`

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.59% (percentile 42, 2026-11-26)
- **CWE:** CWE-863, CWE-284, CWE-20, CWE-732
- **Aliases:** GHSA-w76p-3cgp-qfcm
- **Published:** 2026-05-04T16:19:55.828Z
- **Modified:** 2026-10-26T19:10:00.163Z

## Who should check

- Projects that depend on Maven package org.apache.polaris:polaris-runtime-service (\>= 0.9.0, \< 1.4.1)
- Anyone running Apache Software Foundation Apache Polaris \< 1.4.1

## 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.


\`allowedLocations\` is the admin-configured allowlist of storage paths that
the
catalog is allowed to use. Public project materials suggest that this flag
is a
real supported compatibility / layout mode, not just a contrived lab-only
prerequisite.


In that configuration, a user who can change table settings can cause Apache Polaris
itself to write new table metadata to an attacker-chosen reachable storage
location before the intended location-validation branch runs.

If the later concrete-path validation also accepts that location, Polaris
persists the resulting metadata path into stored table state. Later
table-load
and credential APIs can then return temporary cloud-storage credentials for
the
same location without revalidating it. In plain terms, Polaris can later
hand
out temporary storage access for the same attacker-chosen area.

That attacker-chosen area does not need to be limited to the poisoned
table's
own files. If it is a broader storage prefix, another table's prefix, or,
depending on configuration or provider behavior, even a bucket/container
root,
the resulting disclosure or corruption scope can extend to any data and
metadata Polaris can reach there.



The practical consequences are therefore similar to the staged-create
credential-vending issue already discussed: data and metadata reachable in
that
storage scope can be exposed and, if write-capable credentials are later
issued, modified, corrupted, or removed. Even before that later credential
step, Polaris itself performs the metadata write to the unchecked location.

So the core issue is not only later credential vending. 

The primary defect
is
that Polaris skips its intended location checks before performing a
security-
sensitive metadata write when only \`write.metadata.path\` changes.



When \`polaris.config.allow.unstructured.table.location=false\`, current code
review suggests the later \`updateTableLike(...)\` validation usually rejects
out-of-tree metadata locations before the unsafe path is persisted. That may
reduce the persisted / credential-vending variant, but it does not prevent
the
underlying defect: Polaris still skips the intended pre-write location check
when only \`write.metadata.path\` changes.

## Affected and fixed versions

- Maven `org.apache.polaris:polaris-runtime-service`: affected \>= 0.9.0, \< 1.4.1; fixed 1.4.1 (osv)
- Apache Software Foundation Apache Polaris: \< 1.4.1 (cvelist)

## Mitigation

- Upgrade org.apache.polaris:polaris-runtime-service to 1.4.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-42812. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42812.md
Affected: org.apache.polaris:polaris-runtime-service >= 0.9.0, < 1.4.1
Fixed in: 1.4.1

Steps:
1. Search this machine and project for org.apache.polaris:polaris-runtime-service (Maven), Apache Software Foundation Apache Polaris: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-42812 being exploited?

There is no confirmed exploitation: CVE-2026-42812 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-42812?

Critical: CVSS 9.4 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-42812?

org.apache.polaris:polaris-runtime-service \>= 0.9.0, \< 1.4.1.

### Is there a fix for CVE-2026-42812?

Yes. Fixed in 1.4.1. Upgrade org.apache.polaris:polaris-runtime-service to 1.4.1 or later.

### How do I check if I'm affected by CVE-2026-42812?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/wxd2wj3p0smvrk84msv317wg5tp3jtw9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-42812>
- patch: <https://github.com/apache/polaris/commit/1cdac7b78c0aa6cc6cad4da10a442ae262d1aae3>
- patch: <https://github.com/apache/polaris/commit/d6bbcc386e61d08ba5df1f820d0724816d84427b>
- other: <http://www.openwall.com/lists/oss-security/2026/05/02/13>
- other: <https://github.com/apache/polaris>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-42812>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w76p-3cgp-qfcm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-42812> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-42812>
