CVSS 5.9 MEDIUM Truy cập trái phép

MariaDB Connector/J: Length-encoded integers larger than Integer.MAX_VALUE were truncated before being used as lengths

Mã khác
GHSA-797x-p4mc-jwpm
Công bố
Cập nhật
Lần đầu thấy
Nguồn
GitHub Advisory, NVD, CVE.org, OSV.dev

Mô tả

Summary

MariaDB Connector/J narrowed 8-byte length-encoded integers received from the
server to int without validation. A rogue or MitM server can send a value above
Integer.MAX_VALUE whose truncation becomes a negative or arbitrary length.

Details

The protocol encodes lengths as length-encoded integers, whose 8-byte form the
decoder (readLength() and readIntLengthEncodedNotNull()) returned as
(int) readLong(). A value above Integer.MAX_VALUE therefore wrapped to a
negative or unrelated int, used afterwards as a length to size allocations or
reads, which ended in NegativeArraySizeException, out-of-bounds exceptions or
oversized allocations.

The fix rejects any length-encoded value that does not fit a non-negative int
with an explicit error.

Impact

Availability only: a malicious or compromised server, or a MitM, can crash the
client's connection handling with unchecked exceptions or drive oversized
allocations. Exploitation requires control of the server side of the connection;
no authentication bypass, confidentiality or integrity impact.

Credit

Reported by fg0x0

Điểm và phân loại

CVSS
5.9 MEDIUM v3.1
Nguồn điểm
NVD
Mức độ (theo nguồn)
MEDIUM
EPSS
0.35%

Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Ảnh hưởng

Package Bản bị ảnh hưởng Bản đã sửa
maven org.mariadb.jdbc:mariadb-java-client >= 3.0.0, < 3.3.7 3.3.7
maven org.mariadb.jdbc:mariadb-java-client >= 3.4.0, < 3.4.5 3.4.5
maven org.mariadb.jdbc:mariadb-java-client >= 3.5.0, < 3.5.10 3.5.10

Sản phẩm

  • mariadb-corporation mariadb-connector-j

Vì sao bị lọc

  • CVSS 5.9 < 8.0 và không thuộc CISA KEV

Loại tác động

Truy cập trái phép
từ khoá "authentication bypass"

Dữ liệu riêng của nguồn

CVE.org · Đơn vị cấp mã
GitHub_M
OSV.dev · ID
GHSA-797x-p4mc-jwpm

Tham khảo