В EDB Postgres Extended Server и EDB Postgres Advanced Server версии с 15 по 18 с включенным Transparent Data Encryption (TDE) ключ, используемый для шифрования временных файлов, был не полностью инициализирован. Код применял sizeof() к указателю на буфер ключа, а не к самому буферу, поэтому только 8 из предполагаемых 32 байтов были заполнены из безопасного случайного источника, а оставшиеся 24 байта хранили все, что уже было в памяти. Это уменьшает гарантированную случайность ключа временного файла с 256 бит до 64 бит.
Для этого требуется локальный доступ для чтения к каталогу временного файла сервера, и эти файлы обычно существуют только во время работы сервера; они сохраняются только после сбоя и удаляются при следующем запуске сервера. Постоянные файлы данных и WAL не затрагиваются. Проблема исправлена в EDB Postgres Extended Server 15.20, 16.16, 17.12 и 18.7 и EDB Postgres Advanced Server 15.20.0, 16.16.0, 17.12.0 и 18.7.0; сервер должен быть перезапущен после обновления.
Показать оригинальное описание (EN)
In EDB Postgres Extended Server and EDB Postgres Advanced Server versions 15 through 18 with Transparent Data Encryption (TDE) enabled, the key used to encrypt temporary files was incompletely initialized. The code applied sizeof() to a pointer to the key buffer rather than to the buffer itself, so only 8 of the intended 32 bytes were filled from a secure random source and the remaining 24 bytes kept whatever was already in memory. This reduces the guaranteed randomness of the temporary-file key from 256 bits to 64 bits. Exploiting this requires local read access to the server's temporary-file directory, and those files normally exist only while the server is running; they persist only after a crash and are removed at the next server start. Permanent data files and WAL are not affected. The issue is fixed in EDB Postgres Extended Server 15.20, 16.16, 17.12 and 18.7 and EDB Postgres Advanced Server 15.20.0, 16.16.0, 17.12.0 and 18.7.0; the server must be restarted after upgrading.
Характеристики атаки
Последствия
Строка CVSS v4.0