Browse / AI Framework and Platform Flaws / CVE-2024-2032
Race condition in zenml
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Other weaknesses
- Affected
- zenml (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:L/A:L
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
Parallel user creation requests with the same username both succeed, producing duplicate accounts and inconsistent user records. (Our summary, written by a model. The source text is below.)
Details
A race condition vulnerability exists in zenml-io/zenml versions up to and including 0.55.3, which allows for the creation of multiple users with the same username when requests are sent in parallel. This issue was fixed in version 0.55.5. The vulnerability arises due to insufficient handling of concurrent user creation requests, leading to data inconsistencies and potential authentication problems. Specifically, concurrent processes may overwrite or corrupt user data, complicating user identification and posing security risks. This issue is particularly concerning for APIs that rely on usernames as input parameters, such as PUT /api/v1/users/test_race, where it could lead to further complications.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-2032
- https://github.com/zenml-io/zenml/commit/afcaf741ef9114c9b32f722f101b97de3d8d147b
- https://github.com/pypa/advisory-database/tree/main/vulns/zenml/PYSEC-2024-105.yaml
- https://github.com/zenml-io/zenml
- https://huntr.com/bounties/6199cd5d-611f-4ea9-96c5-52a952ba5a56
Source: GitHub Advisory Database, used under CC BY 4.0.