{"answers":{"affected":"1 open source package ship an affected version, including github.com/formancehq/ledger.","exploited":"There is no known exploitation of CVE-2026-135164 in the wild and no public exploit code.","exposure":"An affected version is exposed as installed. No special setting or call is needed.","fix":"Upgrade github.com/formancehq/ledger to 2.4.18 or later.","what":"CVE-2026-135164 is a high-severity SQL injection vulnerability in formancehq ledger, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-135164 and fix it if it is affected.\n\nWhat it is: CVE-2026-135164 is a high-severity SQL injection vulnerability in formancehq ledger, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-135164 in the wild and no public exploit code.\nExposure: An affected version is exposed as installed. No special setting or call is needed.\n\nAffected packages and fixed versions:\n- github.com/formancehq/ledger (Go): affected from 2.2.0-beta.3; fixed in 2.4.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-135164/ (Markdown: https://insights.sbomify.com/CVE-2026-135164/index.md)","id":"CVE-2026-135164","markdown":"https://insights.sbomify.com/CVE-2026-135164/index.md","name":"CVE-2026-135164","record":{"aliases":["GHSA-7pcx-wr6v-4qx5"],"analysis":{"component_type":"web_application","exploitable_when_present":false,"fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"accounting web application","requires_auth":"low_privilege","requires_specific_call":false,"summary":"Remote API callers can inject SQL via account expand values in Formance Ledger, running queries with the ledger database role's privileges.","user_interaction":"not_required","vuln_class":"sql_injection","vulnerable_functions":[]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"VulnCheck","component":null,"cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-11-25","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-11-25T13:47:06Z","kind":"github_poc","ref":"https://github.com/googlesky/CVE-2026-135164","stars":0,"title":"Formance Ledger 2.2.0-beta.3-\u003c2.4.18: unvalidated account expand reaches SQL — injection via query param or cursor. Verbatim guard from 83cd8dc: payload accepted on vuln, ErrInvalidQuery on fixed"}],"tier":"poc_unverified"},"has_fix":false,"headline":"Formance Ledger 2.2.0-beta.3 before 2.4.18 SQL Injection via Account Expand Parameter","id":"CVE-2026-135164","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"sql_injection","year":"2026"},"main_cpe":null,"main_fixed":["2.4.18"],"main_package":"github.com/formancehq/ledger","n_packages":1,"n_references":5,"n_vendor_status":0,"next":{"headline":"CISO Assistant before 4.2.3 Login Denial of Service via Shared Rate Limit","id":"CVE-2026-135165"},"nickname":null,"packages":[{"ecosystem":"Go","fixed":["2.4.18"],"introduced":["2.2.0-beta.3"],"last_affected":[],"name_kind":null,"package":"github.com/formancehq/ledger","purl":"pkg:golang/github.com/formancehq/ledger","purl_source":"cna","scope":"upstream","source":"CVE-2026-135164"}],"prev":{"headline":"Okou API before 1.762.0 Missing Authentication via Integration OAuth Flows","id":"CVE-2026-135163"},"products":["ledger"],"published":"2026-11-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-23","vendor_status":[],"vendors":["formancehq"]},"summary":"Remote API callers can inject SQL via account expand values in Formance Ledger, running queries with the ledger database role's privileges.","url":"https://insights.sbomify.com/CVE-2026-135164/"}