SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list`
Published Sep 14, 2026
5.3
MEDIUMCVSS 3.1
EPSS 0.38%
Description
SQLAdmin is a flexible Admin interface for SQLAlchemy models. Prior to 0.27.1, ModelView.sort_query in sqladmin/models.py accepts the attacker-controlled sortBy list-view query parameter without enforcing the configured column_sortable_list server-side allow-list in self._sort_fields. The value is resolved with getattr and passed to relationship joins and order_by, allowing requests to sort by columns hidden from column_list and by related-model columns through dotted paths. The resulting row order forms an information-exposure oracle for unexposed values, and reversing ascending and descending order confirms their relative ordering. Pairing sortBy with searchable or filterable columns and pagination can narrow the oracle toward specific values, but exact recovery depends on the application's available fields and data. This issue is fixed in version 0.27.1.
Affected products
-
- Version < 0.27.1StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-77581 Advisory
- https://github.com/advisories/GHSA-ccg5-9c8w-xh6v Advisory
- https://github.com/smithyhq/sqladmin/commit/741635f18f93c020bfe355167ab257da9a6ca99a x_refsource_MISC
- https://github.com/smithyhq/sqladmin/releases/tag/0.27.1 x_refsource_MISC
- https://github.com/smithyhq/sqladmin/security/advisories/GHSA-ccg5-9c8w-xh6v x_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-77581 | Advisory | |
| https://github.com/advisories/GHSA-ccg5-9c8w-xh6v | Advisory | |
| https://github.com/smithyhq/sqladmin/commit/741635f18f93c020bfe355167ab257da9a6ca99a | x_refsource_MISC | |
| https://github.com/smithyhq/sqladmin/releases/tag/0.27.1 | x_refsource_MISC | |
| https://github.com/smithyhq/sqladmin/security/advisories/GHSA-ccg5-9c8w-xh6v | x_refsource_CONFIRM |
Change history (0)
No recorded changes yet.