psf-mysql-client-check(8)
MySQL client programs check for CVE-2026-114952 (v1)
If this software is helpful, consider a donation to our 501c3 nonprofit:
https://privacysafe.foundation
CVE-2026-114952: Oracle MySQL, "Client programs" component.
Published 17 November 2026 as part of Oracle's November 2026 Critical
Security Patch Update (CSPU). CVSS 3.1 9.1 (critical), vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N: network-reachable, no
authentication, no user interaction, full read/write/delete impact on
data the client can see, no availability impact noted. CISA's record
lists CWE-287 (improper authentication).
Oracle's own advisories for MySQL, as a matter of long-standing practice,
name only the product, the affected component ("Client programs"), the
protocol ("MySQL Protocol"), the CVSS score and the affected version
ranges; they do not publish the technical root cause. Secondary analysis
circulating as of 19 November 2026 (unconfirmed by Oracle; treat as a
plausible read, not a established fact) describes a client-side trust
failure during the connection/authentication handshake, in which a MySQL
client program accepts a server's authentication outcome and releases
data or a relayable credential to a server it has not actually verified.
If that is correct, the attacker here is a party controlling or able to
intercept a MySQL server or a man-in-the-middle position on the
connection, not a party attacking a listening mysqld directly; the victim
is whatever process or person is running a MySQL client program.
"Client programs" is the component that ships the mysql, mysqldump,
mysqlbinlog, mysqlimport, mysqlshow, mysqladmin and similar CLI tools
alongside every MySQL Server and MySQL Cluster installation, on the same
package that provides mysqld; this is not a separate install most hosts
would lack.
No confirmed config directive or runtime flag closes this: Oracle has
published no workaround, and the only CONFIRMED fix is upgrading those
binaries. What follows is the one unconfirmed, speculative exception this
script makes, added specifically for hosts stuck on MySQL 8.0 with no
official patch to move to at all:
The same unconfirmed secondary analysis mentioned above names the client
cleartext authentication plugin ("mysql_clear_password", enabled per
connection by the real, documented --enable-cleartext-plugin option, or
the MYSQL_ENABLE_CLEARTEXT_PLUGIN / LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
environment variables) as the specific mechanism it suspects: if a client
program will hand a password to a server in the clear without the
operator ever confirming the server's identity, that fits a
"client trusts an unverified server" shape. The option and both
environment variables are real, documented MySQL client features (not a
detail invented by that analysis) and default to disabled, so turning
them off where found removes one concrete pathway a client misconfigured
this way could be attacked through. This is defense-in-depth against a
guess, not a fix for a confirmed root cause: Oracle has not said this
plugin is involved, there may be other pathways this does not touch, and
running 'harden' is not a substitute for upgrading once a real fix exists
for your line. It is offered because for a MySQL 8.0 host with no patch
to move to, "do something plausible" is a more honest position than
"nothing can be done," as long as it is labeled for what it is.
Affected / fixed versions: Oracle's bulletin for this CSPU batch (which
covers CVE-2026-114952 alongside several other CVEs, not this one alone)
lists affected ranges through MySQL Server/Cluster 8.4.0-8.4.13,
9.7.0-9.7.4, and 26.10 (26.10.0), plus MySQL Shell and MySQL Workbench
26.10.0. Oracle's list for this CSPU does not include MySQL Server 8.0.x
at all; 8.0 moved to Oracle's Sustaining Support phase in April 2026, and
Sustaining Support does not include new CPU/CSPU security patches. This
script therefore cannot say 8.0.x is "fixed" or report a fixed version
for it, and reports any installed 8.0.x client package as affected with
no confirmed remediation path besides moving off 8.0 and asking Oracle
support directly about your specific entitlement if you are on Extended
Support. For 8.4, 9.7 and the 26.x Innovation line, this script treats
the next release after the last-listed-affected point in each line as
the fixed version, since Oracle's practice is to ship the CPU/CSPU fix as
the next quarterly release on the affected line; this is an inference
from Oracle's release cadence, not a figure Oracle's bulletin states
directly, and the override variables below exist so you can correct it
against your own vendor's advisory text without waiting on this script.
What this script does:
check - read-only. Finds installed MySQL client packages (dpkg or
rpm) and reports each one's version against the
known-affected ranges above. Also audits the usual MySQL
client config files and this shell's environment for the
cleartext-plugin settings described above and reports
whether any are active, clearly labeled as unconfirmed.
Exits 1 if any installed client package is in an affected or
unconfirmed range, 0 if every one found is at or above its
line's fixed version, 2 if no MySQL client package was found
or the result could not be determined.
harden [--dry-run] - speculative defense-in-depth only, not a confirmed fix (see
above). Comments out any active 'enable-cleartext-plugin'
line in the config files it walks. Cannot unset an
environment variable in another process or a systemd unit
on your behalf; 'check' reports where it found one set so
you can remove it yourself. Backs up every file it touches.
Requires root. No --reload: there is no long-running
daemon reading this config, since it's read fresh by each
client invocation.
rollback [--dry-run] - restores every file 'harden' backed up. Requires
root, except with --dry-run.
rules - prints the guidance above and exits. No side effects.
version - prints this script's version.
There is deliberately no 'hunt' command: Oracle has not published a
technical root cause, and no log signature has been publicly associated
with this CVE as of this script's writing; a hunt heuristic written
without either would be guesswork dressed up as detection.
--dry-run (harden, rollback): prints what would change and writes nothing,
so it needs no root.
Exit codes: check: 0 clear, 1 exposed/unconfirmed, 2 not found/error.
PSF_LOCK_WAIT: seconds a run that changes the host waits for another one
that is already changing it (default 30), then exit 2.The Security Patches software and this documentation are dedicated to the public domain under CC0 1.0 Universal. Other pages on privacysafe.app/docs are CC BY-SA 4.0 unless the page says otherwise.