Skip to main content
CVE-2025-61765VulnerabilityPublished Updated

Locust: python-socketio vulnerable to arbitrary Python code execution (RCE) through malicious pickle deserialization

Affects locustSource GCVE Database

0
Compare
Authoritative record:CVE-2025-61765· Medium 6.4

Not known to be exploited · CVSS 6.4 Medium : upgrade to 2.41.5_1 when convenient.

Data as of 4 Dec 2026, 18:36 UTC

CVSS 3.1 base score
6.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.41.5_1, 5.14.0
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.

What to do

Upgrade locust to 2.41.5_1; python-socketio to 5.14.0.

Affected software

ProductAffectedFixed in
Homebrewlocustpkg:brew/locustOther threatsAffected
  • >=2.36.1 <2.41.5_1
Fixed in
  • 2.41.5_1
PyPIpython-socketiopkg:pypi/python-socketioOther threatsAffected
  • 0.8.0 – 5.13.0
  • >=0.8.0 <5.14.0
87 affected builds
Fixed in
  • 5.14.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Locust to version 2.41.5_1 or later, which includes python-socketio 5.14.0 or newer that replaces pickle with JSON encoding for inter-server messaging. Additionally, ensure that message queue deployments follow standard security best practices to prevent unauthorized access.

Description

A remote code execution vulnerability exists in python-socketio versions prior to 5.14.0 used by Locust when configured in multi-server mode with a message queue backend. The vulnerability arises from unsafe deserialization of messages using Python's pickle module, allowing attackers with prior access to the message queue to execute arbitrary Python code. Single-server deployments or those with secure message queues are not affected. The issue is fixed in version 2.41.5_1 of Locust, which upgrades python-socketio to a safe version using JSON encoding instead of pickle.

References

Community reviews

Loading reviews…