DataEase
DataEase: Stored SQL Injection via dateFormat field templates
DataEase is an open source data visualization and analysis tool. Prior to 2.10.26, authenticated users can store a crafted custom dateFormat for a dataset field. DatasetTableFieldDTO.dateFormat is inserted without validation into date conversion templates used by Dimension2SQLObj, CustomWhere2Str, Field2SQLObj, WhereTree2Str, and ExtWhere2Str. When a chart renders the field on a cross-datasource dataset, Calcite parsing is bypassed and the crafted format can directly alter the generated SQL. On a single-datasource dataset, exploitation additionally requires the payload to survive Calcite reserialization as a valid string literal. Successful exploitation can compromise the confidentiality, integrity, and availability of the backend database. This issue is fixed in version 2.10.26.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.10.26
Fixed in 2.10.26
Mitigation
Upgrade dataease to 2.10.26 or later.
References
- Vendor advisory github.com/dataease/dataease/security/advisori…
- Patch github.com/dataease/dataease/commit/c8cde16056…
- Release notes github.com/dataease/dataease/releases/tag/v2.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.