{"id":"CVE-2026-75513","state":"PUBLISHED","title":"Marten: SQL injection in Marten's LINQ provider via unescaped string literals","description":"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.","publishedAt":"2026-09-16T20:46:17.189Z","updatedAt":"2026-09-19T01:55:24.743Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["JasperFx marten"],"affected":[{"vendor":"JasperFx","product":"marten","versions":[{"version":">= 7.0.0, < 9.13.0","status":"affected"}]}],"references":["https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","https://github.com/JasperFx/marten/pull/4911","https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","https://github.com/JasperFx/marten/releases/tag/9.13.0"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/75xxx/CVE-2026-75513.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-75513","state":"PUBLISHED","datePublished":"2026-09-16T20:46:17.189Z","dateUpdated":"2026-09-19T01:55:24.743Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-17T20:49:21.599Z"},"containers":{"cna":{"title":"Marten: SQL injection in Marten's LINQ provider via unescaped string literals","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"JasperFx","product":"marten","versions":[{"version":">= 7.0.0, < 9.13.0","status":"affected"}]}],"references":[{"url":"https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","name":"https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JasperFx/marten/pull/4911","name":"https://github.com/JasperFx/marten/pull/4911","tags":["x_refsource_MISC"]},{"url":"https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","name":"https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","tags":["x_refsource_MISC"]},{"url":"https://github.com/JasperFx/marten/releases/tag/9.13.0","name":"https://github.com/JasperFx/marten/releases/tag/9.13.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-16T20:46:17.189Z"},"source":{"advisory":"GHSA-rfx3-98h7-v3xp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-19T01:54:54.693812Z","id":"CVE-2026-75513","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-19T01:55:24.743Z"}}]}}}