Vulnerability · Published Jul 5, 2023 · Assigned by GitHub_M
CVE-2023-34457MechanicalSoup vulnerable to malicious web server reading arbitrary files on client using file input inside HTML form
Medium 5.9
In plain English
A medium-severity improper input validation in MechanicalSoup from MechanicalSoup. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
MechanicalSoup is a Python library for automating interaction with websites. Starting in version 0.2.0 and prior to version 1.3.0, a malicious web server can read arbitrary files on the client using a `<input type="file" ...>` inside HTML form. All users of MechanicalSoup's form submission are affected, unless they took very specific (and manual) steps to reset HTML form field values. Version 1.3.0 contains a patch for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-mechanicalsoup | no fix listed | DEBIAN-CVE-2023-34457 |
| Debian:13 | python-mechanicalsoup | 1.3.0-1 | DEBIAN-CVE-2023-34457 |
| Debian:14 | python-mechanicalsoup | 1.3.0-1 | DEBIAN-CVE-2023-34457 |
| PyPI | mechanicalsoup | 1.3.0 | GHSA-x456-3ccm-m6j4 |
| PyPI | mechanicalsoup | 1.3.0 | PYSEC-2023-108 |
| Ubuntu:22.04:LTS | python-mechanicalsoup | no fix listed | UBUNTU-CVE-2023-34457 |
| Ubuntu:24.04:LTS | python-mechanicalsoup | no fix listed | UBUNTU-CVE-2023-34457 |
| Ubuntu:25.10 | python-mechanicalsoup | no fix listed | UBUNTU-CVE-2023-34457 |
| Ubuntu:26.04:LTS | python-mechanicalsoup | no fix listed | UBUNTU-CVE-2023-34457 |
| Ubuntu:26.10 | python-mechanicalsoup | no fix listed | UBUNTU-CVE-2023-34457 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MechanicalSoup | MechanicalSoup | >= 0.2.0, < 1.3.0 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4 x_refsource_CONFIRM
- https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e x_refsource_MISC
- https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20230803-0005/