Locust: Werkzeug safe_join not safe on Windows (CVE-2024-49766)
CVE-2024-49766 is a vulnerability in Locust related to Werkzeug's safe_join function on Windows systems running Python versions earlier than 3.11. The issue arises because os.path.isabs() does not properly detect UNC paths, allowing safe_join to produce unsafe paths that could lead to unintended data access. Systems using Python 3.11 or later, or non-Windows platforms, are not affected. A patch is available to address this issue.
AI Analysis
Technical Summary
On Windows platforms using Python versions prior to 3.11, the os.path.isabs() function fails to recognize UNC paths such as //server/share as absolute paths. Werkzeug's safe_join function relies on os.path.isabs() to validate paths, but due to this limitation, safe_join can generate paths that bypass intended safety checks. This can potentially allow applications using Locust to access unintended data paths. The vulnerability affects Locust versions from 2.2.1 up to but not including 2.32.0_1. Systems running Python 3.11 or later, or those not on Windows, are not vulnerable. A patch is available to fix this issue.
Potential Impact
The vulnerability could allow an attacker to cause the application to access unintended file system locations due to improper path validation on Windows with Python versions before 3.11. This may lead to unauthorized data exposure or access within the context of the affected application. However, the CVSS vector indicates a low impact with no privileges required and no user interaction needed, but the attack complexity is high.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Locust to a fixed version beyond 2.32.0_1. Additionally, upgrading to Python 3.11 or later on Windows systems will mitigate the issue as the underlying os.path.isabs() behavior is corrected. Systems not running on Windows or using Python 3.11+ are not vulnerable.
Locust: Werkzeug safe_join not safe on Windows (CVE-2024-49766)
Description
CVE-2024-49766 is a vulnerability in Locust related to Werkzeug's safe_join function on Windows systems running Python versions earlier than 3.11. The issue arises because os.path.isabs() does not properly detect UNC paths, allowing safe_join to produce unsafe paths that could lead to unintended data access. Systems using Python 3.11 or later, or non-Windows platforms, are not affected. A patch is available to address this issue.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
On Windows platforms using Python versions prior to 3.11, the os.path.isabs() function fails to recognize UNC paths such as //server/share as absolute paths. Werkzeug's safe_join function relies on os.path.isabs() to validate paths, but due to this limitation, safe_join can generate paths that bypass intended safety checks. This can potentially allow applications using Locust to access unintended data paths. The vulnerability affects Locust versions from 2.2.1 up to but not including 2.32.0_1. Systems running Python 3.11 or later, or those not on Windows, are not vulnerable. A patch is available to fix this issue.
Potential Impact
The vulnerability could allow an attacker to cause the application to access unintended file system locations due to improper path validation on Windows with Python versions before 3.11. This may lead to unauthorized data exposure or access within the context of the affected application. However, the CVSS vector indicates a low impact with no privileges required and no user interaction needed, but the attack complexity is high.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Locust to a fixed version beyond 2.32.0_1. Additionally, upgrading to Python 3.11 or later on Windows systems will mitigate the issue as the underlying os.path.isabs() behavior is corrected. Systems not running on Windows or using Python 3.11+ are not vulnerable.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-locust-CVE-2024-49766
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6aac8dfb55bf5e2cf5490348
Added to database: 09/18/2026, 01:03:55 UTC
Last enriched: 09/18/2026, 01:40:46 UTC
Last updated: 09/18/2026, 01:40:46 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.