🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5812

Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken

#5812
From: Bjørn Mork
Date: Mon, 23 Nov 2026 18:40
87 lines
5607 bytes
Otto Kekäläinen <otto@debian.org> writes:

> Hi,
>
> This is potentially related to this item in the changelog
> (https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1):
>
>   * Backport upstream patch to fix CONC-821 (Closes: #1139473, #1141671,
>     #1144671)
>
> I wonder why none of the original reporters had any follow-up and why
> we haven't received any bug reports on this in Debian unstable/testing
> in all these months since 1:11.8.9+ds-2 was uploaded. Perhaps nobody
> else had the use case of connecting to a MySQL Server with the MariaDB
> Client.

I assume the reason is that the issue depends on having "ssl-ca"
configured without actually doing any certificate validation.  Which
I'll admit is pointless and probably rare configuration.

I was "lucky" enough to have a system configured like that for no good
reason, and that's why I noticed.


> Can you try to reproduce this on a Debian unstable machine/container
> and tell me if the issue is reproducible there too? Or if it only
> affects this 1:11.8.9+ds-0+deb13u1 in Trixie?

The issue is reproducible with mariadb-client from unstable:

frtest4:~# mysql --version
mysql from 11.8.9-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper


frtest4:~# dpkg -S $(which mysql)
mariadb-client-core: /usr/bin/mysql


frtest4:~# apt policy mariadb-client-core
mariadb-client-core:
  Installed: 1:11.8.9+ds-4
  Candidate: 1:11.8.9+ds-4
  Version table:
 *** 1:11.8.9+ds-4 500
        500 http://deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status


frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --host=192.168.10.186 --user=remoteuser --password=$MPW test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 23
Server version: 11.8.9-MariaDB-0+deb13u1 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server
 
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
MariaDB [test]> ^DBye


frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --ssl-ca=/tmp/ca.crt --host=192.168.10.186 --user=remoteuser --password=$MPW test
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed



Here using a mariadb-server from trixie, with dummy certificates
generated like this:

 openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -keyout ca.key -out ca.crt -days 16 -noenc -subj "/CN=foo CA"
 openssl ecparam -name prime256v1 -genkey -noout -out server.key
 openssl req -new -key server.key -out server.csr -subj "/CN=foo server"
 openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 14 -sha256


Bjørn
Technical Details
Message-ID: <O2H7j-dIIZ-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <O2AyS-dEXa-25@gated-at.bofh.it> <O2E9r-dGYI-7@gated-at.bofh.it> <O2Ffb-dHzf-5@gated-at.bofh.it> <O2AyS-dEXa-25@gated-at.bofh.it> <O2Ffb-dHzf-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Bjørn Mork <bjorn@mork.no>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Date: Mon, 23 Nov 2026 19:40:01 +0100
Message-ID: <O2H7j-dIIZ-13@gated-at.bofh.it>
References: <O2AyS-dEXa-25@gated-at.bofh.it> <O2E9r-dGYI-7@gated-at.bofh.it> <O2Ffb-dHzf-5@gated-at.bofh.it> <O2AyS-dEXa-25@gated-at.bofh.it> <O2Ffb-dHzf-5@gated-at.bofh.it>
X-Original-To: Otto Kekäläinen <otto@debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov 23 18:39:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Bjørn Mork <bjorn@mork.no>, 1154991@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-mysql-maint@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1154991
X-Debian-Pr-Package: mariadb-client
X-Debian-Pr-Source: mariadb, mariadb-10.0, mariadb-10.1, mariadb-10.3, mariadb-10.4, mariadb-10.5, mariadb-10.6, mariadb-5.5
Authentication-Results: dilbert.mork.no;
	dkim=pass (1024-bit key; secure) header.d=mork.no header.i=@mork.no header.a=rsa-sha256 header.s=b header.b=S4dZnlKr;
	dkim-atps=neutral
Organization: m
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Virus-Status: Clean
X-Greylist: delayed 728 seconds by postgrey-1.37 at buxtehude; Mon, 23 Nov 2026 18:37:33 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004509
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 87
Sender: robomod@news.nic.it
X-Original-Cc: 1154991@bugs.debian.org, Aquila Macedo <aquilamacedo@riseup.net>
X-Original-Date: Mon, 23 Nov 2026 19:25:19 +0100
X-Original-Message-ID: <875wxnl81c.fsf@miraculix.mork.no>
X-Original-References: <179543319996.2892.8235874843644623604.reportbug@brego.mork.no> <179544670347.259950.12570899178227622037.reportbug@canardo.mork.no> <CAOU6tADES1_+5QJwqdtcMvckhuxbSOYASHg+yL_ohTHqxwsCRA@mail.gmail.com> <179543319996.2892.8235874843644623604.reportbug@brego.mork.no> <CAOU6tADES1_+5QJwqdtcMvckhuxbSOYASHg+yL_ohTHqxwsCRA@mail.gmail.com>