CVE-2024-4311 Lack of login attempt rate-limiting in zenml-io/zenml
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.
| Package | Affected | Fixed in |
|---|---|---|
zenml PyPI | All versions | 0.57.0rc2 |
zenml PyPI | All versions | 0.57.0rc2 |
zenml PyPI | All versions | 0.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.
Other vulnerabilities in zenml-io/zenml
Sources
Also known as GHSA-j3vq-pmp5-r5xj, PYSEC-2026-2070.