Horizon Alert
Summary of the vulnerability and why it matters
A critical security vulnerability has been identified in the Twenty open-source CRM platform, affecting previous versions before 2.15.0. This issue allows for the execution of arbitrary commands by an administrator with specific permissions, potentially leading to unauthorized access and modification of the application's database.
- Data exposure and command execution risk.
- Impacts customer data and system integrity.
- Confirm relevance and assess exposure impact.
Attack Path
How an attacker could exploit the issue
An attacker with administrative access to the Twenty CRM can supply malicious input when configuring a system's TS_VECTOR field. This input is then used in constructing a SQL query without proper escaping, allowing the attacker to execute arbitrary PostgreSQL commands as the application's database user.
- Requires administrator access.
- Supply settings for TS_VECTOR field.
- Arbitrary SQL execution.
Live Threat
Current exploitation, exposure, and threat context
A workspace administrator with the DATA_MODEL permission could execute arbitrary PostgreSQL commands by supplying unescaped input through specific API endpoints or GraphQL mutations. This could affect system data and service behavior when supported by the advisory's context.
- System data and service integrity at risk.
- Arbitrary SQL execution via API or GraphQL.
- Unrestricted database access and control.
Operational Fix
Recommended remediation, mitigation, and detection steps
The critical vulnerability in Twenty's data modeling allows administrators with specific permissions to inject arbitrary SQL, impacting the application's database. This requires immediate attention from teams managing the Twenty application and its underlying database infrastructure. The first practical step is to identify all Twenty instances, confirm their reachability and business criticality, and then coordinate with the application or platform owners to plan remediation, prioritizing instances with wider exposure or higher impact.
- Application and platform teams own remediation.
- Verify Twenty instances and their reachability.
- Plan upgrades and coordinate vendor support.