Home / langroid / langroid / CVE-2026-54760
CVE-2026-54760: is it exploited, and which versions of langroid are affected and fixed?
CVE-2026-54760 is a path traversal (reading or writing files outside the intended folder) vulnerability in langroid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: langroid before 0.65.1 (GitHub advisory GHSA-6xc5-4r68-67fc). Fixed in 0.65.1 (GitHub advisory GHSA-6xc5-4r68-67fc). Severity: Critical (9.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-54760?
Langroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file calls
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.1, the `SQLChatAgent` SQL-injection mitigation, with default `allow_dangerous_operations=False`, combines a raw-text regex blocklist (`_DANGEROUS_SQL_PATTERNS`) with a `sqlglot` SELECT-only statement allowlist. The blocklist entries that target callable functions require the function name to be immediately followed by `\s*\(`. PostgreSQL accepts the same call with the name separated from `(` by a quoted identifier, an inline comment, or schema qualification. These forms evade the regex, still parse as `SELECT`, and execute the same PostgreSQL function. This restores the `pg_read_file` server-side file-read primitive that the prior CVE-2026-25879 / GHSA-pmch-g965-grmr fix was meant to block: the parent advisory fixed a missing `pg_read_file` blocklist entry, while this report shows that the added regex is bypassable. Version 0.65.1 fixes the issue.
From the CVE record by GitHub_M, last updated July 10, 2026, 15:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| langroid | langroid | < 0.65.1 |
As the CVE record by GitHub_M states it, last updated July 10, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langroid | < 0.65.1 | 0.65.1 | GHSA-6xc5-4r68-67fc |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 6, 2026. Summary: Langroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file calls.
How severe is CVE-2026-54760?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.3 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-54760 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, July 10, 2026)
- EPSS
- 0.56% probability of exploitation activity in the next 30 days, percentile 48.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/langroid/langroid/security/advisories/GHSA-6xc5-4r68-67fc x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- June 15, 2026
- Published
- July 9, 2026, 23:49 UTC
- CVE record updated
- July 10, 2026, 15:27 UTC by GitHub_M
- NVD
- Deferred, last modified July 10, 2026, 16:16 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect langroid?
- Jul 9, 2026CVE-2026-54771 langroid: failure to Sanitize Special Elements into a Different Plane
- Jul 9, 2026CVE-2026-54769 langroid: code injection (remote code execution)
- Jul 9, 2026CVE-2026-50181 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-50180 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-55615 langroid: injection
- Jun 1, 2026CVE-2026-25879 langroid: SQL injection
- Feb 4, 2026CVE-2026-25481 langroid: code injection (remote code execution)
- May 20, 2025CVE-2025-46725 langroid: code injection (remote code execution)
Questions about CVE-2026-54760
Is CVE-2026-54760 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 0.56% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of langroid are affected by CVE-2026-54760?
langroid before 0.65.1, per the GitHub advisory GHSA-6xc5-4r68-67fc. The tables above give every range the sources list.
Which version fixes CVE-2026-54760?
0.65.1, per the GitHub advisory GHSA-6xc5-4r68-67fc. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-54760?
Critical (9.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-54760?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.