Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711480 (CVE-2020-1734) - app-admin/ansible: shell enabled by default in a pipe lookup plugin subprocess (CVE-2020-1734)
Summary: app-admin/ansible: shell enabled by default in a pipe lookup plugin subproces...
Status: RESOLVED INVALID
Alias: CVE-2020-1734
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/ansible/ansible/is...
Whiteboard: B3 [upstream/ebuild cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-04 08:06 UTC by filip ambroz
Modified: 2020-06-19 01:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description filip ambroz 2020-03-04 08:06:50 UTC
A flaw was found in the pipe lookup plugin of ansible. Arbitrary commands can be run, when the pipe lookup plugin uses subprocess.Popen() with shell=True, by overwriting ansible facts and the variable is not escaped by quote plugin. An attacker could take advantage and run arbitrary commands by overwriting the ansible facts.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1734
https://nvd.nist.gov/vuln/detail/CVE-2020-1734
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1734
https://security-tracker.debian.org/tracker/CVE-2020-1734
https://www.suse.com/security/cve/CVE-2020-1734/
https://people.canonical.com/~ubuntu-security/cve/2020/CVE-2020-1734.html
Comment 1 John Helmert III gentoo-dev Security 2020-06-19 01:15:45 UTC
Upstream says this is intended behavior and must be prevented by the playbook author.

https://github.com/ansible/ansible/issues/67792#issuecomment-607421605