llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · budibase

GHSA-XJ29-X47G-9W2C

Oracle datasource connector is still vulnerable to identifier SQL injection — incomplete fix of GHSA-qqf5-x7mj-v43p

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
7.6
Alta
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición120 dDesde la divulgación, 22 jul 2026, 3:23 a. m.
Detección119 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
22 jul 26
18 nov 26
19 nov 26
22 jul 26
21 ago 26
20 sept 26
20 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-XJ29-X47G-9W2C divulgada · CVSS 7.6 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Summary

GHSA-qqf5-x7mj-v43p (fixed in 3.39.19) addressed SQL identifier injection in Budibase's PostgreSQL, MySQL, and SQL Server datasource connectors by adding dedicated identifier-quoting helpers. The same release left the Oracle connector untouched. Oracle's post-write row lookup still wraps the table name in double quotes without escaping, so an Oracle datasource whose table name contains a double-quote character produces a second-order SQL injection that executes as the datasource's database user.

The unfixed sink

`packages/server/src/integrations/oracle.ts:577`, in `OracleIntegration.query()`, after a CREATE or UPDATE:

const lastRow = await this.internalQuery({
  sql: `SELECT * FROM "${json.table.name}" WHERE ROWID = '${response.lastRowid}'`,
})

`json.table.name` is interpolated directly inside a double-quoted identifier with no escaping and no parameter binding. A table name containing a `"` closes the identifier early and lets the remainder be parsed as SQL. (`response.lastRowid` is the Oracle-generated ROWID and is not attacker-controllable; the sole vector is the table name.)

Why the 3.39.19 fix does not cover it

The patch introduced `quotePostgresIdentifier`, `quoteMySqlIdentifier`, and `quoteSqlServerIdentifier` in `packages/server/src/integrations/utils/sqlIdentifiers.ts` and applied them at `postgres.ts:358` and `mysql.ts:306`. There is no `quoteOracleIdentifier`, and `oracle.ts` was not modified. The Oracle ROWID-lookup sink is a different code path from the three introspection sinks the advisory fixed (Postgres `SET search_path`, MSSQL `INFORMATION_SCHEMA`, MySQL `DESCRIBE`), so it was missed.

Where the table name comes from

`json.table.name` is the Oracle table name fetched during schema introspection from `user_tables.TABLE_NAME` (`oracle.ts`, `buildSchema`, ~line 185) and stored verbatim in Budibase's metadata. Oracle permits quoted identifiers that contain a `"`.

Reproduction

  1. A table whose name contains a double-quote exists in the connected Oracle database — pre-existing, or created by a principal able to run DDL on that database (the Budibase connection user, or a Budibase builder via schema management). For example a table named:
  2. Budibase introspects the schema and stores the name verbatim.
  3. Any Budibase user with WRITE permission on that table performs a row create or update.
  4. After the write, `oracle.ts:577` runs the ROWID lookup with the table name interpolated; the injected SQL executes as the datasource's Oracle user, and its rows are returned to the caller as the "created/updated" row.

Impact

Arbitrary SQL execution against the Oracle database as the configured connection user — reading or modifying any data that user can reach, beyond the table/row permissions Budibase enforces. The injected SQL is not bounded to Budibase's own schema, so the impact can extend to other database objects and users.

Remediation

Add a `quoteOracleIdentifier` helper that wraps the identifier in `"..."` and doubles any embedded `"` (mirroring `quotePostgresIdentifier`), and apply it to the table name at `oracle.ts:577` — and to any other raw identifier interpolation in `oracle.ts`. Better still, route the ROWID lookup through the same parameterized/Knex path used by the rest of the query builder so the identifier is quoted by the driver.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
budibase< 3.40.0
0.0.31
3.40.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmbudibase
Sin parche — — 0.0.31 afectada
Versiones corregidas3.40.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/Budibase/budibase/security/advisories/GHSA-xj29-x47g-9w2c

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.