Описание
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. Prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9, PAM dialog authentication can be coerced into transmitting the account password over an insecure connection. The mysql_clear_password plugin is gated behind a secure transport, but the sibling PAM handler SendPamAuthPacketFactory, named dialog by the server, does not declare that requirement and inherits the default secure-required value false; older branches implement the same affected behavior in SendPamAuthPacket. A hostile or man-in-the-middle server can send an Authentication Switch Request for dialog over plain TCP, causing the driver to return the user's password in cleartext when sslMode=DISABLE and restrictedAuth=null, which is the default configuration. Properly verified TLS and local Unix sockets are not exposed to this transport vector. This issue is fixed in versions 2.7.14, 3.3.5, 3.4.3, and 3.5.9.
A flaw was found in MariaDB Connector/J. A remote attacker or a man-in-the-middle server can exploit a vulnerability in the PAM dialog authentication mechanism. This flaw allows the attacker to coerce the connector into transmitting account passwords over an insecure connection when default configurations are used. Consequently, the user's password can be intercepted in cleartext, leading to sensitive information disclosure.
Отчет
MariaDB Connector/J (org.mariadb.jdbc:mariadb-java-client) can be coerced by a hostile or man-in-the-middle server into performing PAM 'dialog' authentication over an unencrypted connection, transmitting the account password in cleartext. The affected path (SendPamAuthPacketFactory/SendPamAuthPacket) does not require secure transport and is reachable under the default configuration (sslMode=DISABLE, restrictedAuth unset). Verified TLS (sslMode=verify-ca or verify-full) and local Unix-socket connections are not exposed. Red Hat rates the impact of this flaw as Moderate because exploitation requires a man-in-the-middle network position and a plaintext connection.
Меры по смягчению последствий
Connect using sslMode=verify-full (or verify-ca) with a properly configured server certificate and trust store, or use a local Unix socket, so the connector never negotiates PAM dialog authentication over cleartext. Setting restrictedAuth to exclude the dialog/mysql_clear_password plugins also prevents disclosure. A fixed MariaDB Connector/J (2.7.14, 3.3.5, 3.4.3, or 3.5.9, as appropriate for the branch in use) additionally addresses the issue.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-pf5-rhel9 | Affected | ||
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel8 | Affected | ||
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel9 | Affected | ||
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel8 | Affected | ||
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-ui-rhel9 | Affected | ||
| OpenShift Service Mesh 3 | openshift-service-mesh/kiali-rhel9-operator | Not affected | ||
| Red Hat build of Debezium 3 | mariadb-java-client | Fix deferred | ||
| Red Hat Build of Keycloak | keycloak/rhbk-openshift-rhel9 | Fix deferred | ||
| Red Hat Build of Keycloak | mariadb-java-client | Fix deferred | ||
| Red Hat Build of Keycloak | rhbk/keycloak-rhel9 | Fix deferred |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
5.9 Medium
CVSS3
Связанные уязвимости
MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. Prior to 2.7.14, 3.3.5, 3.4.3, and 3.5.9, PAM dialog authentication can be coerced into transmitting the account password over an insecure connection. The mysql_clear_password plugin is gated behind a secure transport, but the sibling PAM handler SendPamAuthPacketFactory, named dialog by the server, does not declare that requirement and inherits the default secure-required value false; older branches implement the same affected behavior in SendPamAuthPacket. A hostile or man-in-the-middle server can send an Authentication Switch Request for dialog over plain TCP, causing the driver to return the user's password in cleartext when sslMode=DISABLE and restrictedAuth=null, which is the default configuration. Properly verified TLS and local Unix sockets are not exposed to this transport vector. This issue is fixed in versions 2.7.14, 3.3.5, 3.4.3, and 3.5.9.
org.mariadb.jdbc:mariadb-java-client has Cleartext Transmission of Sensitive Information and Insufficiently Protected Credentials
EPSS
5.9 Medium
CVSS3