appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-89.
Summary
### Summary A SQL injection vulnerability exists in `FilterDataServiceCE.java` where the `dropTable` method constructs a SQL `DROP TABLE` statement using string concatenation with the table name. If the table name is derived from user input, this allows for arbitrary SQL command execution. ### Details The vulnerability is located in `app/server/appsmith-interfaces/src/main/java/com/appsmith/external/services/ce/FilterDataServiceCE.java`. Line 627 in `dropTable` method: ```java public void dropTable(String tableName) { String dropTableQuery = "DROP TABLE " + tableName + ";"; executeDbQuery(dropTableQuery); } ``` The `tableName` argument is concatenated directly into the SQL string without validation or escaping. ### PoC If `dropTable` is exposed to user input (e.g., via a utility API that accepts a table name to clean up), an attacker could provide a value like: `valid_table; DROP TABLE users; --` The resulting query would be: `DROP TABLE valid_table; DROP TABLE users; --;` This would delete the intended table and then delete the `users` table (or execute any other injected SQL). ### Impact * **Type:** SQL Injection * **Impact:** Data Loss (Drop Table), potentially Data Exfiltration or Modification depending on database permissions. * **Who is impacted:** Appsmith server instances.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | com.appsmith:interfaces (Maven) | before 1.99 | 1.99 | Patch available | GHSA-h8cj-hpmg-636v |
- com.appsmith:interfaces (Maven) Vendor— Affected before 1.99 Fixed in 1.99 Patch available GHSA-h8cj-hpmg-636v
Remediation
- Fix · GHSA-h8cj-hpmg-636v com.appsmith:interfaces (Maven) Fixed in 1.99 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-h8cj-hpmg-636v
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences