Mareformaに署名検証の不備の脆弱性、未署名の主張が検証済み扱いに
Summary
Mareformaの0.3.0から0.3.7までには、署名のない主張が収束処理で署名済みの主張と同じ扱いになり、REPLICATEDへ昇格される脆弱性があります。偽りの多者による裏付けが、下流の利用者に届くおそれがあります。修正版は0.3.7です。CVSSは7.1で、悪用の情報は公表されていません。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Mareformaの0.3.0から0.3.7までには、署名のない主張が収束処理で署名済みの主張と同じ扱いになり、REPLICATEDへ昇格される脆弱性があります。偽りの多者による裏付けが、下流の利用者に届くおそれがあります。修正版は0.3.7です。CVSSは7.1で、悪用の情報は公表されていません。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mareformamareforma | — | Not listed |
| PyPImareforma |
≥ 0.3.0, < 0.3.7→ 0.3.7 |
0.3.7 |
| pipmareforma |
< 0.3.7→ 0.3.7 |
0.3.7 |
Original description The description as published by the source.
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:
# mareforma/db/core.py:1300-1319
rows = conn.execute(
f"""
SELECT DISTINCT c.claim_id, c.generated_by
FROM claims c, json_each(c.su…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com