{"id":"UBUNTU-CVE-2023-34457","details":"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 `\u003cinput type=\"file\" ...\u003e` 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.","modified":"2026-05-20T16:13:40.219801782Z","published":"2023-07-05T20:15:00Z","upstream":["CVE-2023-34457"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-34457"},{"type":"REPORT","url":"https://github.com/MechanicalSoup/MechanicalSoup/security/advisories/GHSA-x456-3ccm-m6j4"},{"type":"REPORT","url":"https://github.com/MechanicalSoup/MechanicalSoup/commit/d57c4a269bba3b9a0c5bfa20292955b849006d9e"},{"type":"REPORT","url":"https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v1.3.0"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-34457"}],"affected":[{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-1","0.8.0-1","0.10.0-1","0.10.0-1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mechanicalsoup","binary_version":"0.10.0-1.1"},{"binary_version":"0.10.0-1.1","binary_name":"python3-mechanicalsoup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}},{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mechanicalsoup","binary_version":"0.10.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}},{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-4"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.0-4","binary_name":"python3-mechanicalsoup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}},{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.0-6build1","1.3.0-1","1.3.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.3.0-2","binary_name":"python3-mechanicalsoup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}},{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0-2","1.4.0-0ubuntu1","1.4.0-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.0-0ubuntu2","binary_name":"python3-mechanicalsoup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}},{"package":{"name":"python-mechanicalsoup","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-mechanicalsoup?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.0-0ubuntu2","binary_name":"python3-mechanicalsoup"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-34457.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}