{"id":"CVE-2026-75513","published":"2026-09-16T20:46:17Z","modified":"2026-09-19T01:55:24Z","title":"Marten: SQL injection in Marten's LINQ provider via unescaped string literals","vendor":"JasperFx","product":"marten","tier":"tail","description":{"text":"Marten is a .NET Transactional Document DB and Event Store on PostgreSQL. From version 7.0.0 until 9.13.0, several Marten LINQ and tenant-management paths interpolate runtime, potentially attacker-controlled strings into single-quoted SQL literals without escaping or parameterization. The primary confirmed vector is a dictionary indexer key used by Where filters in src/Marten/Linq/Members/Dictionaries/DictionaryItemMember.cs. Additional affected sinks include SelectParser.cs, DatabaseScopedTenantPartitions.cs, and DeleteAllForTenant.cs reached through IEventStore.DeleteProjectionProgressAsync, while DictionaryContainsKeyFilter.cs (Newtonsoft serializer only; System.Text.Json is not affected) handles ContainsKey calls. Events/Daemon/Internals/EventLoader.cs contains a related per-tenant partition-pruning literal that the advisory identifies as a defense-in-depth sink. A crafted single quote can escape the generated literal, enabling filter or multi-tenant authorization bypass and blind data exfiltration, and deployments that permit semicolon-batched Npgsql statements may also allow data modification. This issue is fixed in version 9.13.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00468,"percentile":0.41392,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JasperFx/marten/pull/4911","tags":["x_refsource_MISC"]},{"url":"https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","tags":["x_refsource_MISC"]},{"url":"https://github.com/JasperFx/marten/releases/tag/9.13.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.28},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"jasperfx","affectedVersions":[{"vendor":"JasperFx","product":"marten","versions":[">= 7.0.0, < 9.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-19T01:54:54.693812Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Marten","vulnerableRanges":[">=7.0.0, <8.37.4",">=9.0.0, <9.13.0"],"patched":["8.37.4","9.13.0"],"from":["GHSA-rfx3-98h7-v3xp"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-81263","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-45288","published":"2026-05-28","fixed":"8.37.0","kev":false,"link":{"from":"CVE-2026-45288","to":"CVE-2026-75513","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Marten","fromFixed":"8.37.0","toFixed":"8.37.4","daysApart":111}]}},{"cve":"CVE-2026-75513","published":"2026-09-16","fixed":"9.13.0","kev":false}],"package":"NuGet:Marten"}}