BreachSpiderVerified, not vibes

CVE-2023-40354 in Mariadb Maxscale

Medium 6.5 Fix available

An issue was discovered in MariaDB MaxScale before 23.02.3. A user enters an encrypted password on a "maxctrl create service" command line, but this password is then stored in cleartext in the resulting .cnf file under /var/lib/maxscale/maxscale.cnf.d. The fixed versions are 2.5.28, 6.4.9, 22.08.8, and 23.02.3.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.5
EPSS0.4%
EPSS percentile26th
FixAvailable

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Mariadb Maxscale < 2.5.28 ≥ 6.0.0, < 6.4.9 ≥ 22.08, < 22.08.8 ≥ 23.02, < 23.02.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

An issue was discovered in MariaDB MaxScale before 23.02.3. A user enters an encrypted password on a "maxctrl create service" command line, but this password is then stored in cleartext in the resulting .cnf file under /var/lib/maxscale/maxscale.cnf.d. The fixed versions are 2.5.28, 6.4.9, 22.08.8, and 23.02.3.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-40354
BreachSpider IDBS-2023-GLOBAL-056679-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published2023-08-14
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-312: CWE-312

Related attack patterns (CAPEC)

CAPEC-37 Retrieve Embedded Sensitive Data via CWE-312

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in MariaDB MaxScale before version 23.02.3 allows encrypted passwords provided via the 'maxctrl create service' command to be stored in cleartext in the .cnf file, posing a security risk.

An attacker with access to the file system where MariaDB MaxScale configuration files are stored could read the .cnf file and obtain plaintext passwords for services configured in MariaDB MaxScale.

Questions

What is CVE-2023-40354?

A vulnerability in MariaDB MaxScale before version 23.02.3 allows encrypted passwords provided via the 'maxctrl create service' command to be stored in cleartext in the .cnf file, posing a security risk.

What is the CVSS score for CVE-2023-40354?

CVE-2023-40354 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.4%.

Is CVE-2023-40354 actively exploited?

No confirmed active exploitation of CVE-2023-40354 as of 2026-05-30.

How do I remediate CVE-2023-40354?

Priority: HIGH. Advisory: https://jira.mariadb.org/browse/MXS-4681 PSIRT: [email protected]

What systems are affected by CVE-2023-40354?

CVE-2023-40354 affects Mariadb Maxscale.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mariadb","product":"Maxscale","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.