cve.bz

CVE-2022-27385 mariadb mariadb: SQL Injection

7.5 highExploit referenceEPSS 1.7%

High (7.5) in mariadb mariadb. EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
An issue in the component Used_tables_and_const_cache::used_tables_and_const_cache_join of MariaDB Server v10.7 and below was discovered to allow attackers to cause a Denial of Service (DoS) via specially crafted SQL statements.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-27385 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-27385?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-27385?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-27385 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mariadb:mariadbbefore 10.3.32
mariadb:mariadbfrom 10.4.0 before 10.4.22
mariadb:mariadbfrom 10.5.0 before 10.5.13
mariadb:mariadbfrom 10.6.0 before 10.6.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11mariadb-10.51:10.5.13-0+deb11u1DEBIAN-CVE-2022-27385
Ubuntu16.04:LTSmariadb-10.0no fix listedUBUNTU-CVE-2022-27385
Ubuntu18.04:LTSmariadb-10.1no fix listedUBUNTU-CVE-2022-27385
Ubuntu20.04:LTSmariadb-10.31:10.3.32-0ubuntu0.20.04.1UBUNTU-CVE-2022-27385
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2022:1556
Red Hatenterprise_linux:8::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2022:1557
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:25.3.34-4.module+el8.5.0+14124+14ced695RHSA-2022:1556
Red Hatenterprise_linux:8::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.9-4.module+el8.5.0+14125+d11efe18RHSA-2022:1557
Red Hatenterprise_linux:8::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.13-1.module+el8.5.0+14125+d11efe18RHSA-2022:1557
Red Hatenterprise_linux:8::appstreammariadb, mariadb-test, mariadb-devel and 19 more3:10.3.32-2.module+el8.5.0+14124+14ced695RHSA-2022:1556
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8.4.0+9031+9abc7af9RHSA-2023:6821
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamgalera, galera-debuginfo, galera-debugsource0:26.4.14-1.module+el8.4.0+20291+fd32d29cRHSA-2023:6821
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreammariadb, mariadb-pam, mariadb-test and 21 more3:10.5.22-1.module+el8.4.0+20291+fd32d29cRHSA-2023:6821
Red Hatrhel_eus:8.4::appstreamJudy, Judy-debuginfo, Judy-debugsource0:1.0.5-18.module+el8+2765+cfa4f87bRHSA-2022:4818
Red Hatrhel_eus:8.4::appstreamgalera, galera-debuginfo, galera-debugsource0:25.3.34-4.module+el8.4.0+15058+0c3d11c7RHSA-2022:4818
Red Hatrhel_eus:8.4::appstreammariadb, mariadb-test, mariadb-devel and 19 more3:10.3.32-2.module+el8.4.0+15058+0c3d11c7RHSA-2022:4818
4 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8Judy1.0.5-18.module_el8.5.0+2632+14ced695ALSA-2022:1556
AlmaLinux8Judy1.0.5-18.module_el8.5.0+2637+d11efe18ALSA-2022:1557
AlmaLinux8Judy1.0.5-18.module_el8.6.0+2761+593e5e59ALSA-2022:1556 ALSA-2022:1557
AlmaLinux8Judy1.0.5-18.module_el8.6.0+2867+72759d2fALSA-2022:1556 ALSA-2022:1557
AlmaLinux8galera25.3.34-4.module_el8.5.0+2632+14ced695ALSA-2022:1556
AlmaLinux8galera25.3.34-4.module_el8.6.0+2867+72759d2fALSA-2022:1556
AlmaLinux8galera26.4.9-4.module_el8.5.0+2637+d11efe18ALSA-2022:1557
AlmaLinux8galera26.4.9-4.module_el8.6.0+2761+593e5e59ALSA-2022:1557
AlmaLinux8mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.13-1.module_el8.5.0+2637+d11efe18ALSA-2022:1557
AlmaLinux8mariadb, mariadb-pam, mariadb-test and 11 more3:10.5.13-1.module_el8.6.0+2761+593e5e59ALSA-2022:1557
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.32-2.module_el8.5.0+2632+14ced695ALSA-2022:1556
AlmaLinux8mariadb, mariadb-test, mariadb-devel and 10 more3:10.3.32-2.module_el8.6.0+2867+72759d2fALSA-2022:1556
Rocky Linux8Judy0:1.0.5-18.module+el8.4.0+427+adf35707RLSA-2022:1556 RLSA-2022:1557
Rocky Linux8galera0:25.3.34-4.module+el8.5.0+777+18007c86RLSA-2022:1556
Rocky Linux8galera0:26.4.9-4.module+el8.5.0+773+f75e97f7RLSA-2022:1557
Rocky Linux8mariadb3:10.3.32-2.module+el8.5.0+777+18007c86RLSA-2022:1556
Rocky Linux8mariadb3:10.5.13-1.module+el8.5.0+773+f75e97f7RLSA-2022:1557
Alpinev3.16, v3.17, v3.18 and 6 moremariadb10.6.7-r0ALPINE-CVE-2022-27385

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mariadb:10.3-8050020220204122328.c5368500Fixed 2022-04-26RHSA-2022:1556
Red Hat Enterprise Linux 8mariadb:10.5-8050020220204122540.c5368500Fixed 2022-04-26RHSA-2022:1557
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Extended Update Supportmariadb:10.3-8040020220429075504.522a0ee4Fixed 2022-05-31RHSA-2022:4818
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicemariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsmariadb:10.5-8040020231006044227.522a0ee4Fixed 2023-11-08RHSA-2023:6821
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb105-galera-0:26.4.9-3.el7Fixed 2022-03-22RHSA-2022:1007
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb105-mariadb-3:10.5.13-1.el7Fixed 2022-03-22RHSA-2022:1007
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-galera-0:25.3.34-4.el7Fixed 2022-03-22RHSA-2022:1010
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-mariadb103-mariadb-3:10.3.32-2.el7Fixed 2022-03-22RHSA-2022:1010
Red Hat Enterprise Linux 7mariadbOut of support scope
Red Hat Enterprise Linux 9mariadbNot affected
Red Hat OpenStack Platform 13 (Queens)mariadbOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-27385.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON