CVE-2024-4311 Lack of login attempt rate-limiting in zenml-io/zenml

Medium 5.4 Published Updated

Attackers can brute-force passwords via the unthrottled update endpoint to take over user accounts in ZenML.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-4311?

CVE-2024-4311 is a medium-severity missing authorization vulnerability in zenml-io/zenml, published on 14 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

zenml-io/zenml version 0.56.4 is vulnerable to an account takeover due to the lack of rate-limiting in the password change function. An attacker can brute-force the current password in the 'Update Password' function, allowing them to take over the user's account. This vulnerability is due to the absence of rate-limiting on the '/api/v1/current-user' endpoint, which does not restrict the number of attempts an attacker can make to guess the current password. Successful exploitation results in the attacker being able to change the password and take control of the account.

Weakness: CWE-770

Which versions are affected by CVE-2024-4311?

3 open source packages ship an affected version, including zenml. It affects 1 product.

PackageAffectedFixed in
zenml PyPIAll versions0.57.0rc2
zenml PyPIAll versions0.57.0rc2
zenml PyPIAll versions0.57.0rc2

Products include Zenml Zenml.

How do I fix CVE-2024-4311?

Upgrade zenml to 0.57.0rc2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-4311 being exploited?

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

Sources

Also known as GHSA-j3vq-pmp5-r5xj, PYSEC-2026-2070.

Is CVE-2024-4311 in your software?

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

Check your SBOMs for free