Advisory

GHSA-2jc8-4r6g-282j

Also known as: CVE-2014-1928, PYSEC-2014-91

Summary

python-gnupg's shell_quote function does not properly escape characters

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-11-06 23:13 UTC
Modified
2024-10-25 20:46 UTC

Affected packages and fixes

python-gnupg

PyPI · All systems

Affected

  • introduced 0.3.5, fixed 0.3.6 (ecosystem)

Fixed versions

0.3.6

Fix

  • Fixed version 0.3.6
    pip install --upgrade python-gnupg==0.3.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences