VulnWatch by ve1ve2
high 7.1 EPSS 0.15%

GHSA-8776-qf3h-26r3: Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
mareforma

https://osv.dev/vulnerability/GHSA-8776-qf3h-26r3 ↗

osvpypifix-available

Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path ### Summary `mareforma` 0.3.3 contains a critical integrity flaw in the REPLICATED convergence logic (`_maybe_update_replicated_unlocked()` in `mareforma/db/core.py:1300-1319`). The peer-selection SQL query that determines whether two independent claims "agree" on the same anchor does not verify that either claim carries a valid cryptographic signature from an enrolled validator key. Because `rekor_enabled=False` is the default and automatically sets `transparency_logged=1` at insert time, every claim — signed or not — immediately satisfies the convergence precondition. An attacker with no Mareforma key can write an unsigned claim to a shared graph, cause it to converge with a legitimate signed peer claim, and have it promoted to `REPLICATED` status. The forged `REPLICATED` row is then returned by the default trust query (`graph.query(min_support="REPLICATED")`), allowing the attacker to inject false trust signals into any downstream consumer relying on `REPLICATED` as a multi-party endorsement guarantee. ### Details **Root cause — `mareforma/db/core.py:1300-1319`** The convergence function `_maybe_update_replicated_unlocked()` selects peer claims using a SQL query that filters on `status`, `unresolved`, `transparency_logged`, and `artifact_hash`, but contains no predicate on `signature_bundle` or enrolled-key identity: ```python # mareforma/db/core.py:1300-1319 rows = conn.execute( f""" SELECT DISTINCT c.claim_id, c.generated_by FROM claims c, json_each(c.supports_json) j WHERE j.value IN ({placeholders}) AND c.claim_id != ? AND c.generated_by != ? AND c.support_level != 'ESTABLISHED' AND c.status = 'open' AND c.unresolved = 0 AND c.transparency_logged = 1 AND ( c.artifact_hash IS NULL OR ? IS NULL OR c.artifact_hash = ? ) """, ``` Once peer rows are collected, the sink at `core.py:1324-1334` promotes all matching claim IDs — including the attacker's — to `REPLICATED` without any additional validation. **Why the preconditions are trivially satisfied** 1. **`transparency_logged = 1` is set automatically.** When `rekor_enabled=False` (the library default), `core.py:1061` sets `transparency_logged = 1` immediately after insert. There is no Rekor step, so every claim becomes convergence-eligible the moment it is written. 2. **`require_signed=False` is the default.** `mareforma/__init__.py:41` defaults `require_signed` to `False`. When the attacker opens the graph with a non-existent key path, `__init__.py:132-138` silently sets `signer = None`, enabling unsigned claim insertion. 3. **`assert_claim()` performs no signature gate.** `_graph.py:284-291` only validates DOI resolution on the `supports` list before forwarding attacker-controlled fields to `_db.add_claim()` (`_graph.py:373-380`). **Why the forged claim surfaces in trust queries** The default query path at `core.py:3647-3650` filters out only `PRELIMINARY` claims whose generator is not Affected: PyPI:mareforma Fixed in: 0.3.7 References: https://github.com/mareforma/mareforma/security/advisories/GHSA-8776-qf3h-26r3 https://nvd.nist.gov/vuln/detail/CVE-2026-71535 https://github.com/mareforma/mareforma/pull/18 https://github.com/mareforma/mareforma/commit/e1bf09e515693a7f2a2a80852b05fa66be44302e https://github.com/mareforma/mareforma https://github.com/mareforma/mareforma/releases/tag/v0.3.7

Linked vulnerabilities (2)

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path

CWE: CWE-347Aliases: CVE-2026-71535
CVE-2026-71535 high 7.1 EPSS 0.15% (p4) NVDCVE.orgGHSA
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path

CWE: CWE-347Aliases: GHSA-8776-qf3h-26r3NVD: Deferred

Also reported by (1)