9.9critical
Twenty: SQL Injection via the timeZone field
- Severity
- 9.9critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Twenty is an open source CRM. From 1.7.7 through 1.16.7, a critical Remote Code Execution (RCE) vulnerability exists in Twenty CRM via a chained SQL Injection and PostgreSQL COPY TO PROGRAM attack. If Postgres user is a super user then any authenticated user can execute arbitrary OS commands on the database server by injecting SQL through the unsanitized timeZone parameter in the REST API groupBy endpoint. The timeZone field within the group_by query parameter is directly interpolated into a raw SQL expression using JavaScript template literals without any parameterization, validation, or escaping. This affects engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| twentyhq twenty | >= 1.7.7, <= 1.16.7 | CVE List |
| twenty twenty | from 1.7.7 before 1.16.7 | NVD |
Classification
What each source says
CVE List
Twenty is an open source CRM. From 1.7.7 through 1.16.7, a critical Remote Code Execution (RCE) vulnerability exists in Twenty CRM via a chained SQL Injection and PostgreSQL COPY TO PROGRAM attack. If Postgres user is a super user then any authenticated user can execute arbitrary OS commands on the database server by injecting SQL through the unsanitized timeZone parameter in the REST API groupBy endpoint. The timeZone field within the group_by query parameter is directly interpolated into a raw SQL expression using JavaScript template literals without any parameterization, validation, or escaping. This affects engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts.
NVD (es)
Twenty es un CRM de código abierto. Desde la 1.7.7 hasta la 1.16.7, existe una vulnerabilidad crítica de ejecución remota de código (RCE) en Twenty CRM a través de un ataque encadenado de inyección SQL y PostgreSQL COPY TO PROGRAM. Si el usuario de Postgres es un superusuario, cualquier usuario autenticado puede ejecutar comandos arbitrarios del sistema operativo en el servidor de la base de datos inyectando SQL a través del parámetro timeZone no saneado en el endpoint groupBy de la API REST. El campo timeZone dentro del parámetro de consulta group_by se interpola directamente en una expresión SQL sin procesar utilizando literales de plantilla de JavaScript sin ninguna parametrización, validación o escape. Esto afecta a engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts.
References
| https://github.com/twentyhq/twenty/security/advisories/GHSA-jgx4-6mr9-9573 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46624 changed 2026-05-26 | CVE Terms of Use |
| NVD | CVE-2026-46624 changed 2026-07-24 | Public domain |