CVE-2026-46624
CriticalCVSS 9.9Exploitation Probability (EPSS)
Low risk39th percentile - higher than 39% of all known CVEs
Summary
Critical Remote Code Execution (RCE) vulnerability in Twenty CRM (versions 1.7.7 through 1.16.7) via a chained SQL Injection and PostgreSQL COPY TO PROGRAM attack. An authenticated attacker can execute arbitrary OS commands on the database server by injecting SQL through the unsanitized timeZone parameter in the REST API groupBy endpoint.
Risk Assessment
Risk of full takeover of the database server by an authenticated user, leading to compromise of confidentiality, integrity, and availability of data and potentially the entire system.
Recommendation
Update Twenty CRM to a version above 1.16.7. If an update is not possible, restrict access to the groupBy endpoint to trusted users and apply additional security measures.
Original NVD description (English source)
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.

