Injection SQL dans Marten (CVE-2026-75513)
Résumé
Injection SQL dans Marten (CVE-2026-75513). Des informations confidentielles peuvent être exposées. Exploitable via Where. Atténuation : mise à jour vers 9.13.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Several code paths in Marten's LINQ provider and tenant-management internals interpolated a runtime, potentially attacker-influenced value into generated SQL as a single-quoted string literal without escaping or parameterization. A value containing a single quote (') could break out of the literal and inject arbitrary SQL.
The primary vector is a Dictionary<,> indexer key used in a Where filter — Where(x => x.Attributes[key] == v) — a common "filter by attribute name" / EAV pattern. It is confirmed with an executed proof-of-concept and yields filter / multi-tenant authorization bypass (returning other tenants' rows) and blind data exfiltration. Where the application permits ;-batched statements (Npgsql default), data modification is also possible.
Affected sinks
Linq/Members/Dictionaries/DictionaryItemMember.cs— dictionary indexer key (primary, confirmed PoC)Linq/Members/Dictionaries/DictionaryContainsKeyFilter.cs—Dictionary.ContainsKey(key)(Newtonsoft serializer only; System.Text.Json escapes the quote)Linq/Parsing/SelectParser.cs— a constant string projected throughSelect(x => new { L = runtimeString })Internal/Operations/DeleteAllForTenant.cs— tenant id reaching per-tenant projection teardown viaIEventStore.DeleteProjectionProgressAsync(an in-code comment wrongly claimed the value was validated)Schema/DatabaseScopedTenantPartitions.cs— tenant id inlined intoFOR VALUES IN ('...')partition DDL- `Events/Daemon/I…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-75513 a été découverte dans Marten.
Des attaquants peuvent cibler un point d'entrée spécifique comme Where à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 9.1/10.
Action : mettez à jour Marten vers 9.13.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « Marten CVE-2026-75513 » sur le site de l'éditeur.
CVE-2026-75513 (Marten) — CWE-89 / CVSS v3 9.1
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : Where / IEventStore.DeleteProjectionProgressAsync / Ordering.BuildNgramRankExpression / DeleteAllForTenant
Correctif : 9.13.0 — appliquer immédiatement
Contournement : Until upgrading: do not pass untrusted input as a dictionary indexer key / ContainsKey argument / Select constant, nor as a tenant id into projection teardown or provisioning; and disable multi-statement command batching to limit blast radius.
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une injection SQL (CWE-89) affecte Marten. Les attaquants atteignent le code vulnérable via Where.
Consultez l'avis de l'éditeur pour les versions affectées de Marten. Surface d'attaque : Where / IEventStore.DeleteProjectionProgressAsync / Ordering.BuildNgramRankExpression / DeleteAllForTenant.
Gravité : Critique (CVSS 9.1/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 9.13.0.
Contournement : Until upgrading: do not pass untrusted input as a dictionary indexer key / ContainsKey argument / Select constant, nor as a tenant id into projection teardown or provisioning; and disable multi-statement command batching to limit blast radius.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'Marten' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Martenを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Until upgrading: do not pass untrusted input as a dictionary indexer key / `ContainsKey` argument / `Select` constant, nor as a tenant id into projection teardown or provisioning; and disable multi-statement command batching to limit blast radius.パッチが適用されるまでの応急処置として、Until upgrading: do not pass untrusted input as a dictionary indexer key /
ContainsKeyargument /Selectconstant, nor as a tenant id into projection teardown or provisioning; and disable multi-statement command batching to limit blast radius. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3Apply patch patch
Upgrade Marten to 9.13.0ステージング環境で 9.13.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com