SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list`
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| smithyhq | sqladmin | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Smithyhq | Sqladmin |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-ccg5-9c8w-xh6v | SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list` |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.384% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Smithyhq
Smithyhq sqladmin |
|
| Vendors & Products |
Smithyhq
Smithyhq sqladmin |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list` | |
| Weaknesses | CWE-20 CWE-200 CWE-248 CWE-639 |
|
| References |
| |
| Metrics |
cvssV3_1
|