{"id":"USN-9123-1","summary":"python-mechanize vulnerability","details":"Erik Krogh Kristensen and Rasmus Petersen discovered that mechanize used an\ninefficient regular expression to parse authentication headers. A malicious\nserver could possibly use this issue to cause mechanize to consume\nexcessive resources, leading to a denial of service.","modified":"2026-11-24T14:51:51.951948655Z","published":"2026-11-17T00:48:35Z","related":["UBUNTU-CVE-2021-32837"],"upstream":["CVE-2021-32837","UBUNTU-CVE-2021-32837"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-9123-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32837"}],"affected":[{"package":{"name":"python-mechanize","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.2.5-3ubuntu0.16.04.1~esm1"}]}],"versions":["1:0.2.5-3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"python-clientform","binary_version":"1:0.2.5-3ubuntu0.16.04.1~esm1"},{"binary_name":"python-mechanize","binary_version":"1:0.2.5-3ubuntu0.16.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:16.04:LTS","cves":[{"id":"CVE-2021-32837","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"source":"NVD","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}]}}},{"package":{"name":"python-mechanize","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.2.5-3ubuntu0.18.04.1~esm1"}]}],"versions":["1:0.2.5-3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"python-clientform","binary_version":"1:0.2.5-3ubuntu0.18.04.1~esm1"},{"binary_name":"python-mechanize","binary_version":"1:0.2.5-3ubuntu0.18.04.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:18.04:LTS","cves":[{"id":"CVE-2021-32837","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CNA"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},{"type":"Ubuntu","score":"medium","source":"SELF"}]}]}}},{"package":{"name":"python-mechanize","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.4.5-2ubuntu0.1~esm1"}]}],"versions":["1:0.2.5-3","1:0.4.3-2","1:0.4.5-1","1:0.4.5-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mechanize","binary_version":"1:0.4.5-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json","cves_map":{"ecosystem":"Ubuntu:Pro:20.04:LTS","cves":[{"severity":[{"source":"CNA","type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},{"source":"SELF","type":"Ubuntu","score":"medium"}],"id":"CVE-2021-32837"}]}}}],"schema_version":"1.9.2"}