{"id":"CVE-2012-4571","aliases":["GHSA-p3h7-3c45-qj4v","PYSEC-2012-8"],"kind":"cve","tier":"cold","status":"published","title":"Python Keyring does not securely initialize encryption cipher","description":"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.","ai_summary":null,"severity":"low","cvss":{"score":2.1,"version":"2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","source":"NVD"},"scores":[{"score":2.1,"version":"2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","source":"nvd"}],"cwe":["CWE-310"],"remote":false,"remote_unauth":false,"epss":{"score":0.0037,"percentile":0.22977,"date":"2026-11-28"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"PyPI","name":"keyring","affected":"< 0.9.2","fixed":["0.9.2"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade keyring to 0.9.2 or later.","technologies":[],"references":[{"url":"http://www.ubuntu.com/usn/USN-1634-1","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4571","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-p3h7-3c45-qj4v","kind":"vendor"},{"url":"https://github.com/jaraco/keyring/commit/162f2ed0e39e16d561732b9fad8af6cd2341d7bd","kind":"patch"},{"url":"https://github.com/jaraco/keyring/commit/56272d908ba7a3fe4ebb6d6e87a7cc569f4726ac","kind":"patch"},{"url":"https://github.com/jaraco/keyring/commit/a76942672f6ac85a88bd9b9ed31fd133119b7702","kind":"patch"},{"url":"https://github.com/jaraco/keyring/commit/cbf509b0386c3063d8b2879ce72d78ac18023f72","kind":"patch"},{"url":"https://github.com/jaraco/keyring/commit/cc1ead78d1e3fab9fa8bb0b4bb334cb82d35db52","kind":"patch"},{"url":"http://pypi.python.org/pypi/keyring","kind":"other"},{"url":"https://bugs.launchpad.net/ubuntu/+source/python-keyring/+bug/1004845","kind":"other"},{"url":"http://www.openwall.com/lists/oss-security/2012/10/31/8","kind":"other"},{"url":"https://github.com/jaraco/keyring","kind":"other"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/keyring/PYSEC-2012-8.yaml","kind":"other"}],"workarounds":null,"vendors":["python"],"products":["keyring"],"cpes":["cpe:2.3:a:python:keyring:0.9.1:*:*:*:*:*:*:*"],"published_at":"2012-11-30T22:00:00.000Z","modified_at":"2026-06-16T23:45:25.253Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-4571"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-p3h7-3c45-qj4v","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2012-8","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2012-4571","markdown":"https://flawdb.com/CVE-2012-4571.md","json":"https://flawdb.com/api/v1/entries/CVE-2012-4571"}}