{"id":"EUVD-2026-81263","revision":null,"records":[{"revision":"b94cdace463645aebad47a49ebc8dbfb","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-75513","aliases":[],"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.","state":0,"publishedAt":"2026-09-16T20:46:17.189+00:00","modifiedAt":"2026-09-19T01:55:24.743+00:00","affected":[{"ecosystem":"Vendor product","name":"marten","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"JasperFx\",\n                    \"product\": \"marten\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 7.0.0, < 9.13.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"severity":"CRITICAL"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-75513","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-75513","identifiers":["CVE-2026-75513"]},"retained":false,"historicalAffected":[]},{"revision":"890b7db94a1a4bd99595f8309e2777c0","observedAt":"2026-11-11T16:06:55.093+00:00","statement":{"source":"euvd","id":"EUVD-2026-81263","aliases":["CVE-2026-75513","GHSA-rfx3-98h7-v3xp"],"title":"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 l…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-81263","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 16, 2026, 8:46:17 PM","dateUpdated":"Sep 19, 2026, 1:55:24 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-81263","identifiers":["EUVD-2026-81263","CVE-2026-75513","GHSA-rfx3-98h7-v3xp"]},"retained":false,"historicalAffected":[]},{"revision":"641234e5617a4ce8a1931ab3590a90cd","observedAt":"2026-10-25T15:19:09.409+00:00","statement":{"source":"nvd","id":"CVE-2026-75513","aliases":[],"title":"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 l…","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.","state":0,"publishedAt":"2026-09-16T21:17:13.44+00:00","modifiedAt":"2026-09-19T02:16:54.14+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":9.1,"severity":"CRITICAL"}],"references":["https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","https://github.com/JasperFx/marten/pull/4911","https://github.com/JasperFx/marten/releases/tag/9.13.0","https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-75513","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-89"],"productCriteria":[],"sourceDates":{"published":"2026-09-16T21:17:13.440","lastModified":"2026-09-19T02:16:54.140"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-75513","identifiers":["CVE-2026-75513"]},"retained":false,"historicalAffected":[]},{"revision":"3aae68a4222e413f9fc2ee43b7a49fd9","observedAt":"2026-11-09T18:02:17.856+00:00","statement":{"source":"osv","id":"GHSA-rfx3-98h7-v3xp","aliases":["CVE-2026-75513"],"title":"Marten's LINQ provider has SQL injection via unescaped string literals","description":"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.\n\nThe 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.\n\n## Affected sinks\n\n- `Linq/Members/Dictionaries/DictionaryItemMember.cs` — dictionary indexer key (primary, confirmed PoC)\n- `Linq/Members/Dictionaries/DictionaryContainsKeyFilter.cs` — `Dictionary.ContainsKey(key)` (Newtonsoft serializer only; System.Text.Json escapes the quote)\n- `Linq/Parsing/SelectParser.cs` — a constant string projected through `Select(x => new { L = runtimeString })`\n- `Internal/Operations/DeleteAllForTenant.cs` — tenant id reaching per-tenant projection teardown via `IEventStore.DeleteProjectionProgressAsync` (an in-code comment wrongly claimed the value was validated)\n- `Schema/DatabaseScopedTenantPartitions.cs` — tenant id inlined into `FOR VALUES IN ('...')` partition DDL\n- `Events/Daemon/Internals/EventLoader.cs` (defense-in-depth) — per-tenant partition-pruning literal\n\n## Proof of concept (primary vector)\n\nBenign: `x.Attributes[\"nonexistent-key\"] == \"v\"` returns 0 rows. Attack: `x.Attributes[\"nonexistent' = '' or 1=1 --\"] == \"v\"` returns all rows. Generated SQL:\n\n```\nselect d.data from public.mt_doc_doc as d where d.data -> 'Attributes' ->> 'x' or 1=1 --' = :p0;\n```\n\n## Fix\n\nEach sink now escapes embedded single quotes (`.Replace(\"'\", \"''\")`, mirroring the existing `Ordering.BuildNgramRankExpression`) or binds the value as a parameter (`DeleteAllForTenant`). Where a literal is retained for partition pruning, escaping preserves plan-time pruning while closing the injection. Regression tests lock down each vector.\n\n## Workarounds\n\nUntil 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.\n\n## Credit\n\nReported privately and responsibly by an external security researcher with an executed PoC. Additional sinks found during the follow-up LINQ-wide audit.","state":0,"publishedAt":"2026-09-17T14:51:41+00:00","modifiedAt":"2026-11-09T16:46:31.9483354+00:00","affected":[{"ecosystem":"NuGet","name":"Marten","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"8.37.4"}]}],"versions":["7.0.0","7.1.0","7.1.1","7.10.0","7.10.1","7.11.0","7.12.0","7.13.0","7.13.1","7.14.0","7.15.0","7.16.0","7.17.0","7.17.1","7.18.0","7.19.0","7.19.1","7.2.0","7.20.0","7.20.1","7.20.2","7.21.0","7.21.1","7.22.0","7.23.0","7.23.1","7.24.0","7.25.0","7.25.1","7.25.2","7.26.0","7.26.1","7.26.2","7.26.3","7.26.4","7.26.5","7.26.6","7.27.0","7.28.0","7.28.1","7.28.2","7.29.0","7.3.0","7.3.1","7.30.0","7.30.1","7.30.2","7.30.3","7.31.0","7.31.1","7.31.2","7.31.3","7.32.0","7.33.0","7.33.1","7.33.2","7.33.3","7.34.0","7.34.1","7.35.0","7.35.1","7.35.2","7.35.3","7.36.0","7.37.0","7.37.1","7.37.2","7.37.3","7.38.0","7.38.1","7.39.0","7.39.1","7.39.2","7.39.3","7.39.5","7.39.6","7.4.0","7.40.0","7.40.1","7.40.2","7.40.3","7.40.4","7.40.5","7.5.0","7.6.0","7.7.0","7.8.0","7.9.0","8.0.0","8.0.0-alpha-2","8.0.0-alpha-3","8.0.0-alpha-5","8.0.0-alpha-6-","8.0.0-beta-1","8.0.0-beta-2","8.0.0-rc-1","8.0.0-rc-2","8.0.1","8.1.0","8.1.2","8.10.0","8.10.1","8.11.0","8.12.0","8.13.0","8.13.1","8.13.2","8.13.3","8.14.0","8.15.0","8.15.1","8.15.2","8.15.3","8.15.4","8.16.0","8.16.1","8.16.2","8.16.3","8.16.4","8.17.0","8.18.0","8.18.1","8.18.2","8.18.3","8.19.0","8.2.0","8.2.1","8.20.0","8.21.0","8.22.0","8.22.1","8.22.2","8.23.0","8.24.0","8.25.0","8.26.0","8.26.1","8.26.2","8.27.0","8.28.0","8.29.0","8.29.1","8.29.2","8.29.3","8.3.0","8.3.1","8.3.2","8.3.3","8.30.0","8.30.1","8.31.0","8.32.0","8.32.1","8.33.0","8.34.0","8.34.1","8.34.2","8.35.0","8.36.0","8.37.0","8.37.1","8.37.2","8.37.3","8.4.0","8.5.0","8.6.0","8.7.0","8.8.0","8.8.1","8.8.2","8.9.0","8.9.0-channels-alpha-1","8.9.0-channels-alpha-2"],"rawVersionEvidence":null},{"ecosystem":"NuGet","name":"Marten","ranges":[{"type":"ECOSYSTEM","events":[{"kind":"introduced","version":"9.0.0"},{"kind":"fixed","version":"9.13.0"}]}],"versions":["9.0.0","9.0.1","9.0.2","9.10.0","9.11.0","9.12.0","9.2.0","9.2.1","9.3.0","9.3.1","9.3.2","9.3.4","9.3.5","9.4.0","9.5.0","9.5.1","9.5.2","9.5.3","9.6.0","9.7.0","9.7.1","9.7.2","9.7.3","9.7.4","9.7.5","9.7.6","9.8.0","9.8.1","9.8.2","9.9.0","9.9.1"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/JasperFx/marten/security/advisories/GHSA-rfx3-98h7-v3xp","https://nvd.nist.gov/vuln/detail/CVE-2026-75513","https://github.com/JasperFx/marten/pull/4911","https://github.com/JasperFx/marten/commit/61882d0424854cb48703f08bdb246894ac576bed","https://github.com/JasperFx/marten","https://github.com/JasperFx/marten/releases/tag/8.37.4","https://github.com/JasperFx/marten/releases/tag/9.13.0"],"sourceUrl":"https://github.com/advisories/GHSA-rfx3-98h7-v3xp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-rfx3-98h7-v3xp","identifiers":["GHSA-rfx3-98h7-v3xp","CVE-2026-75513"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-13T03:19:40.5269590+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-13T03:19:40.526959+00:00","lastSuccessAt":"2026-11-13T03:19:40.6882289+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:40.688234+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-d8fa82e95fdb59244e2f635e667ba17f0796ca0a4f1f4bb8cc31febcd660b76c-98121ba726768336a864ab5bced2f3860f36459d7555a27229b152c25d7e1f39","complete":true,"records":424942,"lastAttemptAt":"2026-11-13T03:16:36.8593016+00:00","lastSuccessAt":"2026-11-13T03:16:36.8357038+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:16:36.8593016+00:00","snapshotPublishedAt":"2026-11-13T02:30:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7f404f09616a40578b159775b5b66635","complete":false,"records":13793,"lastAttemptAt":"2026-11-13T03:29:27.9813623+00:00","lastSuccessAt":"2026-11-13T03:29:27.977+00:00","error":"370 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-13T03:29:27.977+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13369,"expectedIdentifiers":13846,"failedIdentifiers":370},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-13T03:19:40.5269590+00:00","complete":true,"records":1123,"lastAttemptAt":"2026-11-13T03:19:40.526959+00:00","lastSuccessAt":"2026-11-13T03:19:40.6892892+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:40.6892894+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-99b329e58ea7441eaabf9a9af1bb4458","complete":true,"records":13781,"lastAttemptAt":"2026-11-13T03:19:48.7349646+00:00","lastSuccessAt":"2026-11-13T03:19:48.73+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:48.73+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13846,"expectedIdentifiers":13846,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-93e76d404e1aeb6a7e8902f5ffa06211fc86dea3b1958e297abb2668aa5e6e8c","complete":true,"records":9952,"lastAttemptAt":"2026-11-13T03:19:40.4671686+00:00","lastSuccessAt":"2026-11-12T23:19:15.5239119+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:40.4671686+00:00","snapshotPublishedAt":"2026-11-12T23:03:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-4d60731753a2f72e455d1086e7203d0ef10843936dcc1cf2b45135e2caa204b0","complete":true,"records":2012,"lastAttemptAt":"2026-11-13T03:16:36.9337406+00:00","lastSuccessAt":"2026-11-12T18:16:50.7862525+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:16:36.9337406+00:00","snapshotPublishedAt":"2026-11-12T17:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-20d1a8ab073a1c13ab2143dbcadb34ebb8edf1e18e16482b448513662c3d1e12","complete":true,"records":3127,"lastAttemptAt":"2026-11-13T03:19:40.4889465+00:00","lastSuccessAt":"2026-11-12T22:18:31.0338213+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:40.4889465+00:00","snapshotPublishedAt":"2026-11-12T22:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-11714c374501e9f6ac09cc4e36bc0b50c7521131f606050aeabd7887ba2c0080","complete":true,"records":231743,"lastAttemptAt":"2026-11-13T03:19:40.3437235+00:00","lastSuccessAt":"2026-11-13T03:19:38.55958+00:00","error":null,"lastVerifiedAt":"2026-11-13T03:19:40.3437235+00:00","snapshotPublishedAt":"2026-11-13T02:48:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}