Marten: SQL injection in Marten's LINQ provider via unescaped string literals
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| JasperFx | marten | 7.0.0 to before 9.13.0 | 9.13.0 | Patch available | CNA |
| — | Marten (NuGet) | 7.0.0 to before 9.13.0 | 9.13.0 | Patch available | GHSA-rfx3-98h7-v3xp |
- marten VendorJasperFx Affected 7.0.0 to before 9.13.0 Fixed in 9.13.0 Patch available CNA
- Marten (NuGet) Vendor— Affected 7.0.0 to before 9.13.0 Fixed in 9.13.0 Patch available GHSA-rfx3-98h7-v3xp
Remediation
- Fix · CNA marten (JasperFx) Fixed in 9.13.0
- Fix · GHSA-rfx3-98h7-v3xp Marten (NuGet) Fixed in 9.13.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-75513
- 2026-10-03 Alias added: GHSA-rfx3-98h7-v3xp
References
More JasperFx vulnerabilities
- TI-2026-33088 Marten has an SQL injection vulnerability in its full-text search regConfig parameter CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-75513 · CVE Program
- CVE-2026-75513 · NVD
- FIRST EPSS
- GHSA-rfx3-98h7-v3xp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences