Skip to main content

Locust: Werkzeug safe_join not safe on Windows (CVE-2024-49766)

0
Medium
Published: 08/13/2026 (08/13/2026, 17:03:02 UTC)
Source: GCVE Database
Product: locust

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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

Homebrewmore threats →ghsa
locust
pkg:brew/locust
Affected versions
>=2.2.1 <2.32.0_1

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

AILast updated: 09/18/2026, 01:40:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses