CVE-2021-34337: Mailman Mailman Core Vulnerable To Timing Vulnerability
HIGHCVE-2021-34337 is a HIGH (CVSS 6.3) mailman core vulnerable to timing vulnerability (CWE-208: Observable Timing Discrepancy) affecting Mailman libraries in the PyPI ecosystem. The issue involves mailman core vulnerable to timing attacks. Remediation is available by upgrading affected packages to version 3.3.5.
CVE-2021-34337 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2021-34337
To remediate this vulnerability, upgrade all affected Mailman dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mailman>=3.3.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mailman
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2021-34337, inspect your installed packages using pip:
pip show mailman
Analyze the terminal output to locate any version of Mailman in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.5), your application is affected.
Note: The pip show mailman command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. In Mailman, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-34337 Affected Mailman Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mailman
|
PyPI |
< 3.3.5
|
3.3.5
|
References
Frequently Asked Questions
What is CVE-2021-34337?
Which Mailman versions are affected?
What version fixes CVE-2021-34337?
Is mailman affected?
What is the CVSS score of CVE-2021-34337?
What CWE is associated with CVE-2021-34337?
How can I check PyPI dependencies for CVE-2021-34337?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2jg5-xgvv-4wq7",
"modified" : "2024-09-30T16:52:42Z",
"published" : "2023-04-15T21:30:16Z",
"aliases" : [ "CVE-2021-34337" ],
"summary" : "Mailman Core vulnerable to timing attacks",
"details" : "An issue was discovered in Mailman Core before 3.3.5. An attacker with access to the REST API could use timing attacks to determine the value of the configured REST API password and then make arbitrary REST API calls. The REST API is bound to localhost by default, limiting the ability for attackers to exploit this, but can optionally be made to listen on other interfaces.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mailman"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-34337"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mailman/PYSEC-2023-22.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://gitlab.com/mailman/mailman"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/mailman/mailman/-/commit/e4a39488c4510fcad8851217f10e7337a196bb51"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/mailman/mailman/-/issues/911"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/mailman/mailman/-/tags"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-208" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-18T13:05:08Z",
"nvd_published_at" : "2023-04-15T20:16:00Z"
}
}