{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.2.0-beta.3"
                  },
                  {
                    "fixed": "2.4.18"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v2.4.18",
                "range": [
                  {
                    "fixed": "83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "8cf1718cdac23479cfadc45542700db3d95ef31d"
            },
            {
              "fixed": "83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"
            }
          ],
          "repo": "https://github.com/formancehq/ledger",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135164.json"
  },
  "details": "Formance Ledger 2.2.0-beta.3 before 2.4.18 contains an SQL injection vulnerability that allows remote API callers to execute SQL by supplying unvalidated account expand values. Attackers can inject comment-separated SQL through the expand query parameter or base64 pagination cursor to run queries with the ledger database role's privileges.",
  "id": "CVE-2026-135164",
  "modified": "2026-11-23T15:45:28.096846377Z",
  "published": "2026-11-23T14:38:57.127Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135164.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/formancehq/ledger"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go"
    },
    {
      "type": "FIX",
      "url": "https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3"
    },
    {
      "type": "FIX",
      "url": "https://github.com/formancehq/ledger/pull/2477"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/formancehq/ledger/releases/tag/v2.4.18"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-135164"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter"
}