Bug 1061599 (CVE-2013-7323, CVE-2014-1927, CVE-2014-1928, CVE-2014-1929)

Summary: CVE-2013-7323 CVE-2014-1927 CVE-2014-1928 CVE-2014-1929 python-gnupg: incorrect fix against shell injection
Product: [Other] Security Response Reporter: Martin Prpič <mprpic>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jrusnack, mmcallis, pwouters
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-25 21:11:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1061600    
Bug Blocks:    

Description Martin Prpič 2014-02-05 07:36:08 UTC
It was found [1] that the fix for improved shell quoting to guard against shell injection, released in version 0.3.5 [2] of python-gnupg, is not sufficient.

This issue has been reported upstream [3].

[1] http://seclists.org/oss-sec/2014/q1/243
[2] https://code.google.com/p/python-gnupg/
[3] https://code.google.com/p/python-gnupg/issues/detail?id=98#c4

Comment 1 Martin Prpič 2014-02-05 07:37:42 UTC
Created python-gnupg tracking bugs for this issue:

Affects: fedora-all [bug 1061600]

Comment 2 Paul Wouters 2014-02-06 04:03:45 UTC
updates pushed to updates-testing for f19,f20,el6 (and built in rawhide)

Comment 3 Murray McAllister 2014-02-10 05:50:22 UTC
This was assigned multiple CVE numbers:

  CVE-2013-7323 Unrestricted use of unquoted strings in a shell,
                within version 0.3.4

  CVE-2014-1927 Erroneous assumptions about the usability of "
                characters within version 0.3.5, leading to attacks
                such as $( command substitution within a "-quoted
                string

  CVE-2014-1928 Erroneous insertion of a \ character within version
                0.3.5, leading to attacks involving command lists
                (such as lists separated by a ; character)

Full details: http://seclists.org/oss-sec/2014/q1/294

Comment 4 Murray McAllister 2014-02-13 07:16:24 UTC
CVE-2014-1929 was assigned to:

""
Second, 0.3.5 and 0.3.6 have a series of differences in handling of
command-line arguments. This seems to be most likely a reaction to
Florian Weimer's observation of "you need to make sure that you
prevent option injection through positional arguments." Does anyone
believe that option injection was impossible in 0.3.5? If not, we will
make a fourth CVE assignment.
""

Reference: http://seclists.org/oss-sec/2014/q1/335