CVE-2014-1927: python-gnupg's shell_quote function does not properly quote strings
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.71688%
CWE
Published
11/6/2018
Updated
10/25/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
python-gnupg | pip | = 0.3.5 | 0.3.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability centers on improper shell quoting in the shell_quote
function. The provided code snippets and mailing list discussions show version 0.3.5's implementation would wrap strings starting/ending with ' in " quotes while only escaping existing " characters. This leaves $(command)
sequences unneutralized when executed in a shell context. The function is directly named in CVE descriptions and security advisories as the root cause of incomplete quoting that enables command injection.