Katalog CVE

CVE-2026-84993

ŚrednieCVSS 6.5
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Streszczenie

MikroORM przed wersjami 6.6.16 i 7.1.7 nie waliduje wartości kierunku w klauzuli orderBy przed wstawieniem jej do zapytania ORDER BY. Aplikacje przekazujące dane kontrolowane przez atakującego do kierunku sortowania w em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy() lub QueryBuilderHelper.getQueryOrderFromObject() mogą umożliwić wstrzyknięcie fragmentu SQL i ślepą ekstrakcję danych.

Ocena ryzyka

Atakujący może odczytać dane dostępne dla konta bazy danych poprzez wstrzyknięcie SQL, co prowadzi do wycieku informacji. Podatność dotyczy wielu sterowników bazodanowych (SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, Oracle), z wyjątkiem MongoDB.

Rekomendacja

Zaktualizuj MikroORM do wersji 6.6.16 lub 7.1.7 (lub nowszej), które zawierają poprawkę tego problemu.

Inne podatności w MikroORM

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS