Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sqlite allows an attacker who controls a get_path/2 segment to traverse into nested JSON the application never exposed, disclosing private or sensitive? embedded fields.
AshSqlite.SqlImplementation builds the SQLite json_extract path with "$." <> Enum.join(right, "."), so a single segment containing ., [, ], or $ re-interprets the JSON path (for example "private.secret" descends two levels instead of naming one key). The path is bound as a parameter, so this is confined to the JSON-path grammar rather than SQL. Any endpoint that lets user input reach a get_path segment (a common pick-a-field pattern) can read nested values it never meant to expose.
This issue affects ash_sqlite: from 0.1.2-rc.0 before 0.2.18.
Click to expand
{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-77846",
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"dateUpdated": "2026-08-30T02:52:12.562Z",
"dateReserved": "2026-08-30T02:15:01.493Z",
"datePublished": "2026-08-30T02:52:12.562Z",
"state": "PUBLISHED"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF",
"dateUpdated": "2026-08-30T02:52:12.562Z"
},
"title": "JSON path injection via unescaped get_path segments in AshSqlite",
"descriptions": [
{
"lang": "en",
"value": "Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sqlite allows an attacker who controls a get_path/2 segment to traverse into nested JSON the application never exposed, disclosing private or sensitive? embedded fields.\n\nAshSqlite.SqlImplementation builds the SQLite json_extract path with \"$.\" <> Enum.join(right, \".\"), so a single segment containing ., [, ], or $ re-interprets the JSON path (for example \"private.secret\" descends two levels instead of naming one key). The path is bound as a parameter, so this is confined to the JSON-path grammar rather than SQL. Any endpoint that lets user input reach a get_path segment (a common pick-a-field pattern) can read nested values it never meant to expose.\n\nThis issue affects ash_sqlite: from 0.1.2-rc.0 before 0.2.18.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "<p>Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sqlite allows an attacker who controls a <code>get_path/2</code> segment to traverse into nested JSON the application never exposed, disclosing private or <code>sensitive?</code> embedded fields.</p>\n<p><code>AshSqlite.SqlImplementation</code> builds the SQLite <code>json_extract</code> path with <code>\"$.\" <> Enum.join(right, \".\")</code>, so a single segment containing <code>.</code>, <code>[</code>, <code>]</code>, or <code>$</code> re-interprets the JSON path (for example <code>\"private.secret\"</code> descends two levels instead of naming one key). The path is bound as a parameter, so this is confined to the JSON-path grammar rather than SQL. Any endpoint that lets user input reach a <code>get_path</code> segment (a common pick-a-field pattern) can read nested values it never meant to expose.</p>\n<p>This issue affects ash_sqlite: from 0.1.2-rc.0 before 0.2.18.</p>"
},
{
"type": "text/markdown",
"base64": false,
"value": "Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sqlite allows an attacker who controls a `get_path/2` segment to traverse into nested JSON the application never exposed, disclosing private or `sensitive?` embedded fields.\n\n`AshSqlite.SqlImplementation` builds the SQLite `json_extract` path with `\"$.\" <> Enum.join(right, \".\")`, so a single segment containing `.`, `[`, `]`, or `$` re-interprets the JSON path (for example `\"private.secret\"` descends two levels instead of naming one key). The path is bound as a parameter, so this is confined to the JSON-path grammar rather than SQL. Any endpoint that lets user input reach a `get_path` segment (a common pick-a-field pattern) can read nested values it never meant to expose.\n\nThis issue affects ash_sqlite: from 0.1.2-rc.0 before 0.2.18."
}
]
}
],
"affected": [
{
"vendor": "ash-project",
"product": "ash_sqlite",
"collectionURL": "https://repo.hex.pm",
"packageName": "ash_sqlite",
"cpes": [
"cpe:2.3:a:ash-project:ash_sqlite:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.AshSqlite.SqlImplementation'"
],
"programFiles": [
"lib/sql_implementation.ex"
],
"programRoutines": [
{
"name": "'Elixir.AshSqlite.SqlImplementation':do_get_path/6"
}
],
"repo": "https://github.com/ash-project/ash_sqlite",
"defaultStatus": "unaffected",
"versions": [
{
"version": "0.1.2-rc.0",
"status": "affected",
"versionType": "semver",
"lessThan": "0.2.18"
}
]
},
{
"vendor": "ash-project",
"product": "ash_sqlite",
"collectionURL": "https://github.com",
"packageName": "ash-project/ash_sqlite",
"cpes": [
"cpe:2.3:a:ash-project:ash_sqlite:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.AshSqlite.SqlImplementation'"
],
"programFiles": [
"lib/sql_implementation.ex"
],
"programRoutines": [
{
"name": "'Elixir.AshSqlite.SqlImplementation':do_get_path/6"
}
],
"repo": "https://github.com/ash-project/ash_sqlite",
"defaultStatus": "unaffected",
"versions": [
{
"version": "c12be48a5b6295593199b0e445b70a4aef81d1cd",
"status": "affected",
"versionType": "git",
"lessThan": "2138480fceb654bec1845e691517ac409d0232c3"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"description": "CWE-943 Improper Neutralization of Special Elements in Data Query Logic",
"cweId": "CWE-943",
"type": "CWE"
}
]
}
],
"references": [
{
"url": "https://github.com/ash-project/ash_sqlite/security/advisories/GHSA-hrp2-5hgw-c83c",
"tags": [
"vendor-advisory",
"related"
]
},
{
"url": "https://cna.erlef.org/cves/CVE-2026-77846.html",
"tags": [
"related"
]
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-77846",
"tags": [
"related"
]
},
{
"url": "https://github.com/ash-project/ash_sqlite/commit/2138480fceb654bec1845e691517ac409d0232c3",
"tags": [
"patch"
]
}
],
"impacts": [
{
"capecId": "CAPEC-676",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-676 NoSQL Injection"
}
]
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"configurations": [
{
"lang": "en",
"value": "An application must let untrusted input reach a get_path/2 path segment over a JSON/map column (for example a public calculation or filter argument that selects a key).",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "<p>An application must let untrusted input reach a <code>get_path/2</code> path segment over a JSON/map column (for example a public calculation or filter argument that selects a key).</p>"
},
{
"type": "text/markdown",
"base64": false,
"value": "An application must let untrusted input reach a `get_path/2` path segment over a JSON/map column (for example a public calculation or filter argument that selects a key)."
}
]
}
],
"credits": [
{
"lang": "en",
"value": "Peter Ullrich",
"type": "finder"
},
{
"lang": "en",
"value": "Peter Ullrich",
"type": "reporter"
},
{
"lang": "en",
"value": "Zach Daniel / Ash Project",
"type": "remediation developer"
},
{
"lang": "en",
"value": "Jonatan Männchen / EEF",
"type": "coordinator"
}
]
}
}
}