CVE-2012-4571: Keyring Python Keyring Does Not Securely Vulnerability
HIGHCVE-2012-4571 is a HIGH (CVSS 7.5) python keyring does not securely vulnerability (CWE-326: Inadequate Encryption Strength) affecting Keyring libraries in the PyPI ecosystem. The issue involves python keyring does not securely initialize encryption cipher. Remediation is available by upgrading affected packages to version 0.9.2.
CVE-2012-4571 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2012-4571
To remediate this vulnerability, upgrade all affected Keyring 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 keyring>=0.9.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show keyring
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2012-4571, inspect your installed packages using pip:
pip show keyring
Analyze the terminal output to locate any version of Keyring in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.2), your application is affected.
Note: The pip show keyring command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. In Keyring, 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-2012-4571 Affected Keyring Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
keyring
|
PyPI |
< 0.9.2
|
0.9.2
|
References
Frequently Asked Questions
What is CVE-2012-4571?
Which Keyring versions are affected?
What version fixes CVE-2012-4571?
Is keyring affected?
What is the CVSS score of CVE-2012-4571?
What CWE is associated with CVE-2012-4571?
How can I check PyPI dependencies for CVE-2012-4571?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p3h7-3c45-qj4v",
"modified" : "2024-09-27T17:28:09Z",
"published" : "2022-05-17T05:18:21Z",
"aliases" : [ "CVE-2012-4571" ],
"summary" : "Python Keyring does not securely initialize encryption cipher",
"details" : "Python Keyring 0.9.1 does not securely initialize the cipher when encrypting passwords for `CryptedFileKeyring` files, which makes it easier for local users to obtain passwords via a brute-force attack.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "keyring"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.9.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-4571"
}, {
"type" : "WEB",
"url" : "https://github.com/jaraco/keyring/commit/162f2ed0e39e16d561732b9fad8af6cd2341d7bd"
}, {
"type" : "WEB",
"url" : "https://github.com/jaraco/keyring/commit/56272d908ba7a3fe4ebb6d6e87a7cc569f4726ac"
}, {
"type" : "WEB",
"url" : "https://github.com/jaraco/keyring/commit/a76942672f6ac85a88bd9b9ed31fd133119b7702"
}, {
"type" : "WEB",
"url" : "https://github.com/jaraco/keyring/commit/cbf509b0386c3063d8b2879ce72d78ac18023f72"
}, {
"type" : "WEB",
"url" : "https://github.com/jaraco/keyring/commit/cc1ead78d1e3fab9fa8bb0b4bb334cb82d35db52"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/ubuntu/+source/python-keyring/+bug/1004845"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jaraco/keyring"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keyring/PYSEC-2012-8.yaml"
}, {
"type" : "WEB",
"url" : "http://pypi.python.org/pypi/keyring"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2012/10/31/8"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-1634-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-326" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-29T21:40:04Z",
"nvd_published_at" : "2012-11-30T22:55:00Z"
}
}