CVE-2023-47117 Object Relational Mapper Leak Vulnerability in Filtering Task in Label Studio

High 7.5 Published Updated

Attackers can leak sensitive user data and forge session tokens via ORM filter manipulation, leading to account takeover.

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-47117?

CVE-2023-47117 is a high-severity vulnerability in HumanSignal label-studio, published on 13 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Label Studio is an open source data labeling tool. In all current versions of Label Studio prior to 1.9.2post0, the application allows users to insecurely set filters for filtering tasks. An attacker can construct a filter chain to filter tasks based on sensitive fields for all user accounts on the platform by exploiting Django's Object Relational Mapper (ORM). Since the results of query can be manipulated by the ORM filter, an attacker can leak these sensitive fields character by character. In addition, Label Studio had a hard coded secret key that an attacker can use to forge a session token of any user by exploiting this ORM Leak vulnerability to leak account password hashes. This vulnerability has been addressed in commit `f931d9d129` which is included in the 1.9.2post0 release. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-200

Which versions are affected by CVE-2023-47117?

3 open source packages ship an affected version, including label-studio. It affects 1 product.

PackageAffectedFixed in
label-studio PyPIAll versions1.9.2
label-studio PyPIAll versions1.9.2.post0
label-studio PyPIAll versions1.9.2.post0

Products include Humansignal Label Studio.

How do I fix CVE-2023-47117?

Upgrade label-studio to a fixed version for your release line: 1.9.2 or 1.9.2.post0.

Is CVE-2023-47117 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-6hjj-gq77-j4qw, PYSEC-2023-275.

Is CVE-2023-47117 in your software?

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

Check your SBOMs for free