{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-135164",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-11-23T14:20:20.710Z",
        "datePublished": "2026-11-23T14:38:57.127Z",
        "dateUpdated": "2026-11-23T14:38:57.127Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-11-23T14:38:57.127Z"
            },
            "datePublic": "2026-11-04T00:00:00.000Z",
            "title": "Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
                            "cweId": "CWE-89",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "formancehq",
                    "product": "ledger",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "2.2.0-beta.3",
                            "lessThan": "2.4.18",
                            "versionType": "semver",
                            "status": "affected"
                        }
                    ],
                    "packageURL": "pkg:golang/github.com/formancehq/ledger",
                    "repo": "https://github.com/formancehq/ledger"
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "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",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 8.7,
                        "baseSeverity": "HIGH"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "HIGH",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/formancehq/ledger/pull/2477",
                    "tags": [
                        "issue-tracking",
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/formancehq/ledger/commit/83cd8dc7a66ba02a0418a36ec45663b19e26dcb3",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/formancehq/ledger/blob/v2.4.17/internal/storage/ledger/resource_accounts.go",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://github.com/formancehq/ledger/releases/tag/v2.4.18",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "ledger v2.4.18 Release Notes"
                },
                {
                    "url": "https://www.vulncheck.com/advisories/formance-ledger-2.2.0-beta.3-before-2.4.18-sql-injection-via-account-expand-parameter",
                    "name": "VulnCheck Advisory: Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter",
                    "tags": [
                        "third-party-advisory"
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Chris Purcell (L3Digital LLC)",
                    "type": "finder"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        }
    }
}