USN-9123-1

Source
https://ubuntu.com/security/notices/USN-9123-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-9123-1
Upstream
Related
Published
2026-11-17T00:48:35Z
Modified
2026-11-18T00:58:39Z
Summary
python-mechanize vulnerability
Details

Erik Krogh Kristensen and Rasmus Petersen discovered that mechanize used an inefficient regular expression to parse authentication headers. A malicious server could possibly use this issue to cause mechanize to consume excessive resources, leading to a denial of service.

References

Affected packages

Ubuntu:Pro:16.04:LTS / python-mechanize

Package

Name
python-mechanize
Purl
pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps-legacy%2Fxenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:0.2.5-3ubuntu0.16.04.1~esm1

Affected versions

1:0.*
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

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2021-32837",
            "severity":  [
                {
                    "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",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:16.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json"

Ubuntu:Pro:18.04:LTS / python-mechanize

Package

Name
python-mechanize
Purl
pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps%2Fbionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:0.2.5-3ubuntu0.18.04.1~esm1

Affected versions

1:0.*
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

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2021-32837",
            "severity":  [
                {
                    "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",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:18.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json"

Ubuntu:Pro:20.04:LTS / python-mechanize

Package

Name
python-mechanize
Purl
pkg:deb/ubuntu/python-mechanize?arch=source&distro=esm-apps%2Ffocal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1:0.4.5-2ubuntu0.1~esm1

Affected versions

1:0.*
1:0.2.5-3
1:0.4.3-2
1:0.4.5-1
1:0.4.5-2

Ecosystem specific

{
    "availability":  "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries":  [
        {
            "binary_name":  "python3-mechanize",
            "binary_version":  "1:0.4.5-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "cves":  [
        {
            "id":  "CVE-2021-32837",
            "severity":  [
                {
                    "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",
                    "type":  "CVSS_V3"
                },
                {
                    "score":  "medium",
                    "type":  "Ubuntu"
                }
            ]
        }
    ],
    "ecosystem":  "Ubuntu:Pro:20.04:LTS"
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-9123-1.json"