CVE-2024-7340 W&B Weave server remote arbitrary file leak and privilege escalation
Remote attackers can traverse directories to leak arbitrary files and escalate privileges to admin in the W&B Weave server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-7340?
CVE-2024-7340 is a high-severity path traversal vulnerability in weave, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The Weave server API allows remote users to fetch files from a specific directory, but due to a lack of input validation, it is possible to traverse and leak arbitrary files remotely. In various common scenarios, this allows a low-privileged user to assume the role of the server admin.
Which versions are affected by CVE-2024-7340?
3 open source packages ship an affected version, including weave.
| Package | Affected | Fixed in |
|---|---|---|
weave PyPI | All versions | 0.50.8 |
weave PyPI | All versions | 0.50.8 |
weave PyPI | All versions | 0.50.8 |
How do I fix CVE-2024-7340?
Upgrade weave to 0.50.8 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-7340 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7340 exists.
Public exploit code: 1 Nuclei template.
Sources
Also known as GHSA-r49h-6qxq-624f, PYSEC-2026-2035.