CVE-2026-46624
JSON

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 packageVersionsReported by
twentyhq twenty>= 1.7.7, <= 1.16.7CVE List
twenty twentyfrom 1.7.7 before 1.16.7NVD

Classification

CWE-78CWE-89

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-46624 changed 2026-05-26CVE Terms of Use
NVDCVE-2026-46624 changed 2026-07-24Public domain