CVE-2022-27381 SQL injection in n/a

High 7.5 Published Updated

Attackers can cause a Denial of Service in MariaDB Server by submitting specially crafted SQL statements to the Field::set_default component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-27381?

CVE-2022-27381 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue in the component Field::set_default of MariaDB Server v10.6 and below was discovered to allow attackers to cause a Denial of Service (DoS) via specially crafted SQL statements.

Weakness: CWE-89

Which versions are affected by CVE-2022-27381?

3 open source packages ship an affected version, including mariadb, mariadb-min and mysql-client. It affects 2 products.

PackageAffectedFixed in
mariadb BitnamiFrom 10.2.010.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4
mariadb-min BitnamiFrom 10.2.010.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4
mysql-client BitnamiFrom 10.2.010.2.44, 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4

Products include Debian Debian Linux, Mariadb Mariadb.

How do I fix CVE-2022-27381?

Upgrade mariadb to a fixed version for your release line: 10.2.44, 10.3.35, 10.4.25 or 10.5.16.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2022-27381 being exploited?

There is no known exploitation of CVE-2022-27381 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-27381, AZL-9693, BIT-mariadb-2022-27381, BIT-mariadb-min-2022-27381, BIT-mysql-client-2022-27381, DEBIAN-CVE-2022-27381 and 2 more.

Is CVE-2022-27381 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free