Live threats

All CVEs / JasperFx

CVE-2026-75513JasperFx marten

SQL Injection in Marten via Unescaped String Interpolation in SQL Literals

Critical 9.1

Priority
55
CVSS 3.1
9.1
EPSS
—
Auth required
Yes
Published
Sep 16, 2026
Updated
Sep 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

What happens

Marten versions 7.0.0 through 9.12.x interpolate attacker-controlled strings into SQL literals without escaping or parameterization, affecting LINQ filters, tenant management, and other code paths. An authenticated attacker can use single quotes to bypass filters, circumvent multi-tenant authorization, and exfiltrate data; in some cases also allowing data modification.

Show the original NVD 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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 8.37.4, 9.13.0

Update Marten to version 8.37.4 or 9.13.0 or later from NuGet.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for marten.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
NuGet Marten ≥ 7.0.0 < 8.37.4 8.37.4 dotnet add package Marten --version 8.37.4
NuGet Marten ≥ 9.0.0 < 9.13.0 9.13.0 dotnet add package Marten --version 9.13.0

Per OSV / GitHub Advisories (GHSA-rfx3-98h7-v3xp). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.