Skip to main content

Twenty CRM EUVDEUVD-2026-31907

| CVE-2026-46624 CRITICAL
OS Command Injection (CWE-78)
2026-05-26 GitHub_M
9.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege Twenty account
  2. Delivery
    Send REST groupBy request with malicious timeZone
  3. Exploit
    SQL injection in raw template-literal expression
  4. Execution
    Issue COPY TO PROGRAM via superuser Postgres role
  5. Persist
    Shell command executes on database host
  6. Impact
    Full host compromise and lateral movement

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) an authenticated account of any privilege level on a Twenty CRM instance running 1.7.7 through 1.16.7, (2) network reachability to the REST API groupBy endpoint, and (3) the critical configuration prerequisite that the PostgreSQL role used by the Twenty backend holds SUPERUSER, since COPY TO PROGRAM is restricted to superusers - without superuser the bug remains a SQL injection but does not reach OS command execution. No user interaction is needed, no special client is required, and complexity is low because the timeZone parameter is interpolated raw; the limiting factor for real-world impact is therefore the database role configuration rather than the application itself.

Impact

Signals are mostly aligned toward high real-world risk but with one mitigating factor. CVSS 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) reflects a network-reachable, low-complexity bug requiring only low privileges (any authenticated user) and yielding total compromise with scope change - consistent with SSVC Technical Impact: total. SSVC also lists Exploitation: poc, indicating publicly available exploit code exists, but Automatable: no, suggesting it is not yet trivially wormable. EPSS at 0.15% (35th percentile) is modest and the vulnerability is NOT on CISA KEV, so there is no confirmation of widespread active exploitation. The most important caveat: exploitation is conditional on Postgres being configured with a superuser role for the application connection - a non-default best-practice deviation. Teams running least-privilege database roles face only the SQLi half (still serious for data confidentiality/integrity) rather than full RCE.

Exploit ScenarioDerived

A low-privileged user with a valid Twenty CRM account sends a REST API groupBy request whose timeZone field carries a crafted SQL payload, breaking out of the template-literal expression and appending a COPY (SELECT '') TO PROGRAM 'sh -c ...' statement. Because publicly available exploit code exists (SSVC: poc), the attacker reuses a known payload to spawn a reverse shell on the database host, achieving RCE under the postgres process account whenever the connection role is a superuser.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Remote code execution in Twenty CRM versions 1.7.7 through 1.16.7 allows authenticated users to execute arbitrary OS commands on the database server by chaining SQL injection in the REST API groupBy endpoint with PostgreSQL's COPY TO PROGRAM functionality. The unsanitized timeZone parameter is interpolated directly into raw SQL via JavaScript template literals, and exploitation succeeds whenever the application's Postgres role holds superuser privileges. Publicly available exploit code exists per SSVC, though EPSS scoring (0.15%) suggests exploitation activity has not yet become widespread.

RemediationAI

Upgrade Twenty CRM to a release later than 1.16.7 as described in the vendor advisory at https://github.com/twentyhq/twenty/security/advisories/GHSA-jgx4-6mr9-9573; the input data does not name a specific fixed tag, so upstream fix available per advisory but released patched version not independently confirmed - consult the GHSA before deploying. As immediate compensating controls, reconfigure the application's PostgreSQL role to remove SUPERUSER (this alone blocks COPY TO PROGRAM and downgrades the bug from RCE to SQLi, with the side effect that any Twenty features relying on superuser-only operations must be reviewed), block or proxy-filter the REST API groupBy endpoint at the reverse proxy to reject group_by parameters containing quote, semicolon, or COPY/PROGRAM tokens (may break legitimate group-by queries with unusual time zones), and restrict access to the API to trusted networks or via authenticated VPN since exploitation requires only a valid low-privilege account. Rotate database credentials and audit logs for unexpected COPY TO PROGRAM statements after patching.

Affected VersionsENISA

twenty 1.7.7, ≤ 1.16.7

Affected Packages

euvd twenty_1_7_7 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Twenty is an open-source CRM platform whose GraphQL/REST query runner builds PostgreSQL group_by expressions in engine/api/graphql/graphql-query-runner/group-by/resolvers/utils/get-group-by-expression.util.ts. The timeZone field inside the group_by query parameter is concatenated into a raw SQL fragment using JavaScript template literals, with no parameter binding, allow-listing, or escaping - a textbook CWE-78 (OS Command Injection) outcome enabled by SQL injection. PostgreSQL's COPY ... TO PROGRAM directive lets a superuser pipe query output through an OS command, so once SQLi is achieved on a database connection whose role has SUPERUSER, the injected statement reaches the underlying shell of the database host. The affected CPE is cpe:2.3:a:twentyhq:twenty covering all versions in the stated range.

Know when Twenty gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Twenty CRM versions 1.7.7-1.16.7 contain a critical remote code execution vulnerability allowing authenticated users to execute arbitrary operating system commands on the database server, with no vendor patch currently available. Publicly available exploit code exists, enabling compromise of the database by any user with application access. Organizations using affected versions face imminent risk of complete data loss and must implement interim protections immediately.

Business Impact: Severe
Compensating Controls

Revoke superuser privileges from the PostgreSQL application role if feasible; restrict database network access via firewall to designated application servers only; implement database activity monitoring with alerting on command execution attempts; isolate the database server from general corporate networks; enforce multi-factor authentication for database administrative access; maintain encrypted, offline backups isolated from production systems.

Threat Intelligence Overview

EPSS Score
0.1%
Top 65% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Twenty

View all
CVE-2026-26720 CRITICAL POC
9.8 Mar 02

Twenty CRM v1.15.0 has a code injection vulnerability enabling remote attackers to execute arbitrary code through the CR

CVE-2024-28434 HIGH POC
7.6 Mar 25

The CRM platform Twenty is vulnerable to stored cross site scripting via file upload in version 0.3.0. Rated high severi

CVE-2026-105763 CRITICAL
9.6 Oct 05

Plaintext IMAP, SMTP, and CalDAV passwords belonging to other workspace members are disclosed to any authenticated low-p

CVE-2024-28435 MEDIUM POC
5.4 Mar 25

The CRM platform Twenty version 0.3.0 is vulnerable to SSRF via file upload. Rated medium severity (CVSS 5.4), this vuln

CVE-2026-137584 CRITICAL
9.1 Nov 26

Unauthenticated workspace takeover in Twenty CRM: the public signUp GraphQL mutation returns the plaintext personalInvit

CVE-2026-73069 CRITICAL
9.1 Aug 11

SQL injection in Twenty, an open-source CRM platform, lets a workspace administrator holding the DATA_MODEL permission i

CVE-2026-44729 HIGH
8.7 May 26

Stored cross-site scripting in Twenty CRM versions 1.18.0 and earlier allows authenticated users to upload HTML/JavaScri

CVE-2026-33975 HIGH
8.3 May 05

Server-side request forgery (SSRF) in Twenty CRM allows authenticated users to bypass IP filtering protections and acces

CVE-2026-55583 HIGH
7.6 Jun 24

Cross-workspace data disclosure in Twenty CRM before 2.9.0 lets any authenticated user holding the AI settings flag (a w

CVE-2026-85055 HIGH
7.1 Sep 22

Field-level read permission bypass in Twenty CRM before 2.22.0 lets an authenticated workspace member or API key that is

CVE-2026-92771 HIGH
7.1 Sep 16

Twenty CRM before 2.35.0 fails to enforce field- and row-level permission checks inside the groupBy-with-records GraphQL

CVE-2026-35451 MEDIUM
5.7 Apr 21

Stored cross-site scripting in Twenty CRM versions prior to 1.20.6 allows authenticated attackers to inject malicious Ja

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy