{"vuln_id":"GHSA-xfq4-8hf9-5h43","aliases":["CVE-2026-71534"],"description":"Mareforma: transparency_logged trusts the unsigned rekor block","published_at":"2026-11-19T16:05:07Z","modified_at":"2026-11-19T16:15:03.473679Z","first_seen_at":"2026-11-21T19:15:19.494572Z","severity":"medium","severity_source":"ghsa","cvss_score":6.9,"cvss_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","cwe":["CWE-345"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-xfq4-8hf9-5h43"},"matched_alias":null,"items":[{"id":10722,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-xfq4-8hf9-5h43: Mareforma: transparency_logged trusts the unsigned rekor block","summary":"Mareforma: transparency_logged trusts the unsigned rekor block\n\n## What's wrong\n\nDuring 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.\n\nFirst, 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.\n\nSecond, 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.\n\n## Severity and impact\n\n**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.\n\n## Location\n\n- `mareforma/db/restore.py:376` reads `toml_logged` from the TOML and probes the bundle for a `rekor.uuid`\n- `mareforma/db/restore.py:385` computes `resolved_transparency` from the unsigned rekor block alone\n- `mareforma/db/core.py:1401` the REPLICATED convergence gate requires `c.transparency_logged = 1`\n\n## Fix direction\n\nDo 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.\n\nWhen 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).\n\nDo red/green TDD: add a regression test that fails on `main`, then make it pass.\n\n## Quality bar\n\nSOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.\n\nAffected: PyPI:mareforma\n\nFixed in: 0.3.8\n\nReferences:\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-xfq4-8hf9-5h43\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-71534\nhttps://github.com/mareforma/mareforma/pull/58\nhttps://github.com/mareforma/mareforma/commit/cccbf4eafd3c34b20b1686f12c0cad76c87566ae\nhttps://github.com/mareforma/mareforma\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.8","url":"https://osv.dev/vulnerability/GHSA-xfq4-8hf9-5h43","published_at":"2026-11-19T16:05:07Z","updated_at":"2026-11-19T16:15:03.473679Z","fetched_at":"2026-11-21T19:15:55.946130Z","severity":"medium","cvss_score":6.9,"epss":0.00083,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71534","vuln_ids":["CVE-2026-71534","GHSA-XFQ4-8HF9-5H43"],"tags":["osv","pypi","fix-available"],"cluster_id":2256,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10722","html":"https://vulnwatch.ve1ve2.com/item/10722"}},{"id":2412,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-xfq4-8hf9-5h43 / CVE-2026-71534: Mareforma: transparency_logged trusts the unsigned rekor block","summary":"Mareforma: transparency_logged trusts the unsigned rekor block\n\n## What's wrong\n\nDuring 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.\n\nFirst, 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.\n\nSecond, 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.\n\n## Severity and impact\n\n**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.\n\n## Location\n\n- `mareforma/db/restore.py:376` reads `toml_logged` from the TOML and probes the bundle for a `rekor.uuid`\n- `mareforma/db/restore.py:385` computes `resolved_transparency` from the unsigned rekor block alone\n- `mareforma/db/core.py:1401` the REPLICATED convergence gate requires `c.transparency_logged = 1`\n\n## Fix direction\n\nDo 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.\n\nWhen 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).\n\nDo red/green TDD: add a regression test that fails on `main`, then make it pass.\n\n## Quality bar\n\nSOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.\n\nAffected packages: pip:mareforma\nPatched: mareforma 0.3.8","url":"https://github.com/advisories/GHSA-xfq4-8hf9-5h43","published_at":"2026-11-19T16:05:07Z","updated_at":"2026-11-19T16:05:08Z","fetched_at":"2026-11-21T19:15:18.416816Z","severity":"medium","cvss_score":6.9,"epss":0.00083,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71534","vuln_ids":["CVE-2026-71534","GHSA-XFQ4-8HF9-5H43"],"tags":["ghsa","pip","CWE-345"],"cluster_id":2256,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2412","html":"https://vulnwatch.ve1ve2.com/item/2412"}},{"id":8269,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-71534: Mareforma is a local verification layer for AI-assisted research. From 0.3.0 until 0.3.8, restore logic in mareforma/db/restore.py derives transparency_logged…","summary":"Mareforma is a local verification layer for AI-assisted research. From 0.3.0 until 0.3.8, restore logic in mareforma/db/restore.py derives transparency_logged from the unsigned rekor.uuid field inside signature_bundle without requiring a verified claim-bound rekor_inclusions entry, so an attacker who modifies claims.toml can falsely make a claim eligible for REPLICATED convergence. The same logic resets signed claims in non-Rekor graphs from transparency_logged 1 to 0 after restore, permanently preventing convergence because no Rekor refresh is configured. This issue is fixed in version 0.3.8.\n\nReferences:\nhttps://github.com/mareforma/mareforma/commit/cccbf4eafd3c34b20b1686f12c0cad76c87566ae\nhttps://github.com/mareforma/mareforma/pull/58\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.8\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-xfq4-8hf9-5h43","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71534","published_at":"2026-11-18T23:17:21.480000Z","updated_at":"2026-11-19T21:45:08.810000Z","fetched_at":"2026-11-21T19:15:31.484052Z","severity":"medium","cvss_score":6.9,"epss":0.00083,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-71534","vuln_ids":["CVE-2026-71534","GHSA-XFQ4-8HF9-5H43"],"tags":["CWE-345"],"cluster_id":2257,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8269","html":"https://vulnwatch.ve1ve2.com/item/8269"}}]}