Insecure Permissions in Python Keyring Package Leading to World-Readable Files

python-keyring Updated 02 Oct 2025

Summary

25/11/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2012-5578: Python keyring has insecure permissions on new databases allowing world-readable files to be created. Affects python-keyring versions < 0.9.2-1.1. Fixed in 0.9.2-1.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Python Keyring package is a library designed to provide a simple interface for accessing and managing credentials securely. It allows applications to store and retrieve passwords and other sensitive information in a secure manner. However, the package has been found to have a vulnerability that affects the permissions of new databases, potentially exposing sensitive data to unauthorized access.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2012-5578 arises from insecure permissions on newly created databases within the Python Keyring package. This flaw allows for the creation of world-readable files, which means that any user on the system can access these files, leading to potential data breaches. The vulnerability affects multiple versions of the package across various Debian releases, making it a significant concern for users relying on this library for secure credential management.

How To Fix

Minimum fixed version

0.9.2-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-keyring

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can manually adjust the permissions of the database files created by the Python Keyring package to restrict access. This can be done using the command: 'chmod 600 <database_file>', where <database_file> is the path to the specific database file. However, this is not a permanent solution and updating the package is recommended.

Conclusion

The Python Keyring package has a critical vulnerability that allows for insecure permissions on newly created databases, potentially exposing sensitive information. Users are strongly advised to update to the patched version 0.9.2-1.1 to mitigate this risk. Temporary workarounds can be applied, but a permanent fix through updating is essential for maintaining security.

See every vulnerability recorded for python-keyring →

Share this vulnerability

FAQ

The vulnerability allows unauthorized users to read sensitive information stored in the database files, which can lead to data breaches.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Yes, not updating the package poses a risk of exposing sensitive data to unauthorized users, which can lead to security incidents.

If immediate updates are not possible, ensure to restrict file permissions manually as a temporary workaround until you can apply the update.

Related vulnerabilities

Recent vulnerabilities recorded for python-keyring.

How To Fix

Minimum fixed version

0.9.2-1.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-keyring

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback