CVE-2026-46624: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in twentyhq twenty
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.
AI Analysis
Technical Summary
CVE-2026-46624 affects Twenty CRM versions 1.7.7 through 1.16.7 and involves a chained SQL Injection and PostgreSQL COPY TO PROGRAM attack vector. The vulnerability stems from the timeZone field within the group_by query parameter being directly embedded into a raw SQL expression using JavaScript template literals without validation or escaping. This allows an authenticated user to inject SQL commands that, if the PostgreSQL user has superuser privileges, can lead to arbitrary OS command execution on the database server. The affected code is located in engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts. The CVSS v3.1 score is 9.9, indicating critical severity with network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary operating system commands on the database server hosting Twenty CRM, potentially leading to full system compromise. The impact includes complete loss of confidentiality, integrity, and availability of the affected system. This can result in data theft, data manipulation, service disruption, and further lateral movement within the environment.
Mitigation Recommendations
No official patch or remediation is currently available as per the provided data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict PostgreSQL user privileges to avoid superuser rights for the database user used by Twenty CRM. Additionally, avoid exposing the vulnerable API endpoint to untrusted users and consider implementing input validation or filtering on the timeZone parameter as a temporary mitigation.
CVE-2026-46624: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in twentyhq twenty
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.
CVSS v3.1
Score 9.9critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46624 affects Twenty CRM versions 1.7.7 through 1.16.7 and involves a chained SQL Injection and PostgreSQL COPY TO PROGRAM attack vector. The vulnerability stems from the timeZone field within the group_by query parameter being directly embedded into a raw SQL expression using JavaScript template literals without validation or escaping. This allows an authenticated user to inject SQL commands that, if the PostgreSQL user has superuser privileges, can lead to arbitrary OS command execution on the database server. The affected code is located in engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts. The CVSS v3.1 score is 9.9, indicating critical severity with network attack vector, low attack complexity, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation allows an authenticated user to execute arbitrary operating system commands on the database server hosting Twenty CRM, potentially leading to full system compromise. The impact includes complete loss of confidentiality, integrity, and availability of the affected system. This can result in data theft, data manipulation, service disruption, and further lateral movement within the environment.
Mitigation Recommendations
No official patch or remediation is currently available as per the provided data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, restrict PostgreSQL user privileges to avoid superuser rights for the database user used by Twenty CRM. Additionally, avoid exposing the vulnerable API endpoint to untrusted users and consider implementing input validation or filtering on the timeZone parameter as a temporary mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-15T19:34:14.012Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a15e03a891d628fdc67d933
Added to database: 5/26/2026, 6:02:34 PM
Last enriched: 5/26/2026, 6:19:22 PM
Last updated: 5/26/2026, 9:50:15 PM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.