Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 8 min 129 bronnen 4 kritiek 58 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-54760

NONE Gepubliceerd: CWE-22

Beschrijving NL

Langroid is een raamwerk voor het bouwen van grote-taal-model-aangedreven applicaties. Voorafgaand aan versie 0.65.1 combineert de `SQLChatAgent` SQL-injection mitigation, met standaard `allow_dangerous_operations=False`, een raw-text regex blocklist (`_DANGEROUS_SQL_PATTERNS`) met een `sqlglot` SELECT-only statement allowlist. De bloklijstvermeldingen die opvraagbare functies targeten, vereisen dat de functienaam onmiddellijk wordt gevolgd door's*(`. PostgreSQL accepteert dezelfde oproep met de naam gescheiden van `(` door een geciteerde identifier, een inline opmerking of schemakwalificatie. Deze formulieren omzeilen de regex, ontleden nog steeds als `SELECTEREN` en voeren dezelfde PostgreSQL-functie uit. Dit herstelt de `pg_read_file` server-side file-read primitive dat de eerdere CVE-2026-25879/GHSA-pmch-g965-grmr fix bedoeld was om te blokkeren: het bovenliggende advies heeft een ontbrekende `pg_read_file` blocklist entry opgelost, terwijl dit rapport aantoont dat de toegevoegde regex omzeilbaar is. Versie 0.65.1 lost het probleem op.

Origineel (Engels) tonen

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.

References