GHSA-h8cj-hpmg-636v

Suggest an improvement
Source
https://github.com/advisories/GHSA-h8cj-hpmg-636v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-h8cj-hpmg-636v/GHSA-h8cj-hpmg-636v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h8cj-hpmg-636v
Published
2026-04-29T20:59:45Z
Modified
2026-05-05T16:07:07Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
appsmith has SQL Injection in FilterDataService via Unsafe DROP TABLE Execution
Details

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:

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.
Database specific
{
    "cwe_ids":  [
        "CWE-89"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-29T20:59:45Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

Maven / com.appsmith:interfaces

Package

Name
com.appsmith:interfaces
View open source insights on deps.dev
Purl
pkg:maven/com.appsmith/interfaces

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.99

Database specific

last_known_affected_version_range
"<= 1.98"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-h8cj-hpmg-636v/GHSA-h8cj-hpmg-636v.json"