CVE-2023-37472 Query injection in Knowage server

High 7.7 Published Updated

An authenticated attacker can inject SQL via unsanitized HQL queries to retrieve sensitive database information, including credentials.

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

What is CVE-2023-37472?

CVE-2023-37472 is a high-severity SQL injection vulnerability in KnowageLabs Knowage-Server, published on 14 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Knowage is an open source suite for business analytics. The application often use user supplied data to create HQL queries without prior sanitization. An attacker can create specially crafted HQL queries that will break subsequent SQL queries generated by the Hibernate engine. The endpoint `_/knowage/restful-services/2.0/documents/listDocument_` calls the `_countBIObjects_` method of the `_BIObjectDAOHibImpl_` object with the user supplied `_label_` parameter without prior sanitization. This can lead to SQL injection in the backing database. Other injections have been identified in the application as well. An authenticated attacker with low privileges could leverage this vulnerability in order to retrieve sensitive information from the database, such as account credentials or business information. This issue has been addressed in version 8.1.8. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-89

Which versions are affected by CVE-2023-37472?

It affects 1 product.

Products include Eng Knowage.

How do I fix CVE-2023-37472?

No fix has been published for CVE-2023-37472 yet. Limit exposure of the affected software until one is available.

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-37472 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37472 exists.

Sources

Also known as GHSA-2j3f-f696-7rgj.

Is CVE-2023-37472 in your software?

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

Check your SBOMs for free