CVE-2023-30465 Apache InLong: SQL injection in apache inLong 1.5.0

Medium 5.3 Published Updated

An attacker can exploit SQL injection in Apache InLong to extract user credentials from the database by manipulating the orderType parameter.

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

What is CVE-2023-30465?

CVE-2023-30465 is a medium-severity SQL injection vulnerability in Apache InLong, published on 11 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Apache Software Foundation Apache InLong.This issue affects Apache InLong: from 1.4.0 through 1.5.0. By manipulating the "orderType" parameter and the ordering of the returned content using an SQL injection attack, an attacker can extract the username of the   user with ID 1 from the "user" table, one character at a time.  Users are advised to upgrade to Apache InLong's 1.6.0 or cherry-pick [1] to solve it. https://programmer.help/blogs/jdbc-deserialization-vulnerability-learning.html

[1] https://github.com/apache/inlong/issues/7529 https://github.com/apache/inlong/issues/7529

Weakness: CWE-89

Which versions are affected by CVE-2023-30465?

4 open source packages ship an affected version, including org.apache.inlong:manager-pojo and org.apache.inlong:manager-service. It affects 1 product.

PackageAffectedFixed in
org.apache.inlong:manager-pojo MavenFrom 1.4.01.6.0
org.apache.inlong:manager-pojo MavenFrom 1.4.01.6.0
org.apache.inlong:manager-service MavenFrom 1.4.01.6.0
org.apache.inlong:manager-service MavenFrom 1.4.01.6.0

Products include Apache Inlong.

How do I fix CVE-2023-30465?

Upgrade org.apache.inlong:manager-pojo to 1.6.0 or later.

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-2023-30465 being exploited?

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

Sources

Also known as GHSA-cqr6-3x3f-9wr3.

Is CVE-2023-30465 in your software?

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

Check your SBOMs for free