MEDIUM · CVSS 4.0 EPSS 0.1% · 0th percentile CWE-345

CVE-2026-71534: Mareforma: transparency_logged trusts the unsigned rekor block

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-xfq4-8hf9-5h43

Summary

The Mareforma library incorrectly derives transparency status from unsigned Rekor metadata in TOML files, allowing potential tampering with claims integrity. Engineering teams using versions 0.3.0 through 0.3.7 must upgrade to version 0.3.8 or later to restore proper cryptographic validation.

Who is affected

Affected deployments are vulnerable to an integrity bypass where attackers can manually modify 'claims.toml' to falsely flag claims as Rekor-witnessed and ready for replication. Conversely, honest configurations without Rekor may experience silent data trust degradation during restores, preventing convergence to a replicated state.

Exploitability

The vulnerability is rated Medium with low attack complexity, requiring low privileges and no user interaction, though it requires local access or the ability to modify the claim storage. It is not currently listed in CISA's Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI mareforma >= 0.3.0, < 0.3.8 0.3.8 python -m pip install 'mareforma>=0.3.8'

CVSS 4.0 vector

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Attack vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredLow
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)High
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Does this vulnerability allow remote execution?

No. The vulnerability relates to metadata integrity and the restoration process of signed claims, not arbitrary code execution.

Is this vulnerability actively exploited in the wild?

There is no evidence of active exploitation; the CISA KEV status is no.

What happens if I cannot upgrade immediately?

You should ensure that any manual restoration of claim files is performed with strict validation against external integrity logs, as the current implementation of mareforma cannot be trusted to verify its own transparency status.

Original advisory description
## What's wrong During restore, `transparency_logged` is recomputed as `1 if (toml_logged is not False and bundle_has_rekor) else 0`, where `bundle_has_rekor` comes only from a `rekor.uuid` field inside `signature_bundle`. That derivation is wrong in both directions. First, the rekor block is metadata attached after signing (`attach_rekor_entry` in `mareforma/signing/rekor.py` leaves the payload and signatures untouched), so it is not covered by the Ed25519 signature. A hand-edited `claims.toml` can add `"rekor": {"uuid": "x"}` to any claim's bundle and forge the "publicly witnessed by Rekor" state. The claim signature still verifies, and restore never cross-checks the block against `[rekor_inclusions]` or the log. Tampering with `claims.toml` is the exact threat model restore defends against; `_verify_claim_signatures_on_restore` checks only payload and signatures. Second, a signed claim in a graph that never used Rekor is written with `transparency_logged=1` (the column default when Rekor is disabled) but restores as 0 because its bundle has no rekor block. The convergence gate requires `transparency_logged = 1`, so post-restore peers can no longer converge to REPLICATED. With no `rekor_url` configured, `refresh_unsigned()` is a no-op and the flag stays 0 forever. Observed on the honest path: signed non-Rekor claim restores from `transparency_logged=1` to 0, and a subsequent peer stays at PRELIMINARY instead of converging. ## Severity and impact **High.** An attacker who edits `claims.toml` can mark claims Rekor-witnessed and REPLICATED-eligible without them ever having been logged. Meanwhile the common honest configuration (signed, no Rekor) has its trust state silently degraded by every catastrophic-loss restore, with no recovery path. ## Location - `mareforma/db/restore.py:376` reads `toml_logged` from the TOML and probes the bundle for a `rekor.uuid` - `mareforma/db/restore.py:385` computes `resolved_transparency` from the unsigned rekor block alone - `mareforma/db/core.py:1401` the REPLICATED convergence gate requires `c.transparency_logged = 1` ## Fix direction Do not derive `transparency_logged` from an unsigned envelope field. When a rekor block is present, require a matching, cryptographically verified `[rekor_inclusions]` entry (via `verify_rekor_inclusion` against the pinned log public key) whose hashedrekord `spec.data.hash` equals the SHA-256 of the claim's signed payload before setting 1; otherwise set 0. When the claim is signed and neither the bundle nor the graph carries Rekor coordinates, restore the write-time value: the TOML omits `transparency_logged` unless it was 0, so treat an absent flag plus no rekor bundle as 1 (the column default for non-Rekor writes). Do red/green TDD: add a regression test that fails on `main`, then make it pass. ## Quality bar SOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.

References

Source records: GHSA-xfq4-8hf9-5h43 (OSV.dev) · EPSS by FIRST, 2026-11-21.