Arbitrary Command Execution Vulnerability in python-gnupg Package

python-gnupg Updated 02 Oct 2025

Summary

09/06/2014
N/A
Yes i
Unrated
Not published

CVE-2013-7323: python-gnupg before 0.3.5 allows context-dependent attackers to execute arbitrary commands via shell metacharacters in unspecified vectors. Affects python-gnupg versions < 0.3.6-1. Fixed in 0.3.6-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The python-gnupg package is a Python wrapper for GnuPG, allowing developers to integrate GPG encryption and decryption functionalities into their applications. It is widely used for secure data handling and cryptographic operations. However, prior to version 0.3.5, the package was susceptible to a vulnerability that could allow attackers to execute arbitrary commands through shell metacharacters, compromising the security of applications relying on this package.

Vulnerability Detail

The vulnerability, identified as CVE-2013-7323, arises from improper handling of user input in the python-gnupg package. Context-dependent attackers can exploit this flaw by injecting shell metacharacters into unspecified vectors, leading to arbitrary command execution. This could result in unauthorized access to system resources, data breaches, or further exploitation of the affected system. The vulnerability affects multiple Debian ecosystems, including versions 11, 12, and 13, and was introduced in versions prior to 0.3.5.

How To Fix

Minimum fixed version

0.3.6-1

This is the first release that contains the fix.

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

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

Workaround

If upgrading is not immediately feasible, a temporary workaround involves sanitizing user inputs to prevent the injection of shell metacharacters. This can be achieved by implementing input validation and escaping mechanisms in the application code that utilizes the python-gnupg package.

Conclusion

The CVE-2013-7323 vulnerability in the python-gnupg package poses a significant risk by allowing arbitrary command execution through shell metacharacters. It is crucial for users to upgrade to version 0.3.6-1 or later to mitigate this risk. Additionally, implementing input validation can serve as a temporary measure until an upgrade is possible.

See every vulnerability recorded for python-gnupg →

Share this vulnerability

FAQ

CVE-2013-7323 is a vulnerability in the python-gnupg package that allows attackers to execute arbitrary commands via shell metacharacters.

Versions of python-gnupg prior to 0.3.5 are affected by this vulnerability.

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

Exploitation of this vulnerability can lead to unauthorized command execution, data breaches, and potential compromise of the affected system.

Yes, you can implement input validation and sanitization to prevent the injection of shell metacharacters as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for python-gnupg.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.3.6-1

This is the first release that contains the fix.

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

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