# CVE-2026-54529: SQLAdmin: Unvalidated sortBy parameter in `ModelView` bypasses `column_sortable_list`

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-02)
- Published: 2026-09-09T18:01:56.000Z
- Modified: 2026-09-30T19:38:27.293Z
- Also known as: GHSA-ccg5-9c8w-xh6v, PYSEC-2026-3922
- Weaknesses: CWE-20, CWE-200, CWE-248, CWE-639
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- smithyhq sqladmin: < 0.27.1
- sqladmin (PyPI): before 0.27.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/smithyhq/sqladmin/security/advisories/GHSA-ccg5-9c8w-xh6v> (web)
- <https://github.com/smithyhq/sqladmin/commit/741635f18f93c020bfe355167ab257da9a6ca99a>
- <https://github.com/smithyhq/sqladmin/releases/tag/0.27.1> (web)
- <https://github.com/smithyhq/sqladmin> (package)
- <https://pypi.org/project/sqladmin> (package)
- <https://github.com/advisories/GHSA-ccg5-9c8w-xh6v> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54529> (advisory)

## Sources

- CVE List: [CVE-2026-54529](https://www.cve.org/CVERecord?id=CVE-2026-54529), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-ccg5-9c8w-xh6v](https://github.com/advisories/GHSA-ccg5-9c8w-xh6v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54529](https://nvd.nist.gov/vuln/detail/CVE-2026-54529), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3922](https://osv.dev/vulnerability/PYSEC-2026-3922), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-54529 · Whole record: https://cve.day/CVE-2026-54529.json · Rebuilt by cve.day 2026-11-25T22:59:38.293Z
