CVE-2020-1937 SQL Injection in Kylin

High 8.8 Published Updated

Attackers can execute malicious database queries via SQL injection in Apache Kylin RESTful APIs, potentially compromising data integrity and confidentiality.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-1937?

CVE-2020-1937 is a high-severity SQL injection vulnerability in Apache Kylin, published on 24 Feb 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Kylin has some restful apis which will concatenate SQLs with the user input string, a user is likely to be able to run malicious database queries.

Weakness: CWE-89

Which versions are affected by CVE-2020-1937?

4 open source packages ship an affected version, including org.apache.kylin:kylin-server-base. It affects 1 product.

PackageAffectedFixed in
org.apache.kylin:kylin-server-base MavenAll versions2.6.5
org.apache.kylin:kylin-server-base MavenAll versions2.6.5
org.apache.kylin:kylin-server-base MavenFrom 3.0.03.0.1
org.apache.kylin:kylin-server-base MavenFrom 3.0.03.0.1

Products include Apache Kylin.

How do I fix CVE-2020-1937?

Upgrade org.apache.kylin:kylin-server-base to a fixed version for your release line: 2.6.5 or 3.0.1.

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-2020-1937 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-7hmh-8gwv-mfvq.

Is CVE-2020-1937 in your software?

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

Check your SBOMs for free