pgjdbc, PostgreSQL JDBC Driver, версии 42.7.4 и 42.7.5 могут отправлять предыдущее содержимое буфера отправки GSS вместо первой части значения на соединение с шифрованием GSS (gssEncModeпредпочитать или требовать), и сервер сохраняет значение без ошибки. Буфер составляет 16320 байт с MIT Kerberos. Затем сохраненное значение содержит байты сообщений, отправленных драйвером непосредственно перед этим соединением, такие как текст SQL оператора, его другие параметры и более ранние строки той же партии, вместо байтов, предоставленных приложением.
Значения, по крайней мере, до тех пор, пока буфер влияет, когда драйвер записывает их из массива байтов: привяжите параметры, установленные с setString, setBytes или ByteStreamWriter, CopyIn.writeToCopy и LargeObject.write. Большинство таких записей терпят неудачу с ArrayIndexOutOfBoundsException. По умолчанию gssEncModeallow не запускается шифрование GSS, и соединения без шифрования GSS не затрагиваются.
Версии 42.7.3 и более ранние не затронуты, и 42.7.6 исправляет проблему.
Показать оригинальное описание (EN)
pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 and 42.7.5 can send the previous contents of the GSS send buffer in place of the first part of a value on a connection with GSS encryption (gssEncMode=prefer or require), and the server stores the value without an error. The buffer is 16320 bytes with MIT Kerberos. The stored value then holds bytes of the messages the driver sent just before it on the same connection, such as the statement's SQL text, its other parameters, and earlier rows of the same batch, instead of the bytes the application supplied. Values at least as long as the buffer are affected when the driver writes them from a byte array: bind parameters set with setString, setBytes, or a ByteStreamWriter, CopyIn.writeToCopy, and LargeObject.write. Most such writes fail with an ArrayIndexOutOfBoundsException instead. The default, gssEncMode=allow, does not start GSS encryption, and connections without GSS encryption are not affected. Versions 42.7.3 and earlier are not affected, and 42.7.6 fixes the problem.
Характеристики атаки
Последствия
Строка CVSS v3.1