CVE-2019-3828
Vulnerability Summary
Timeline
Description
Ansible fetch module before versions 2.5.15, 2.6.14, 2.7.8 has a path traversal vulnerability which allows copying and overwriting files outside of the specified destination in the local ansible controller host, by not restricting an absolute path.
CVSS Metrics
- v4.0•LOW•Score: 2.4CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
- v3.1•MEDIUM•Score: 4.2CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- v3.0•MEDIUM•Score: 4.2CVSS:3.0/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- v2.0•LOW•Score: 3.3AV:L/AC:M/Au:N/C:P/I:P/A:N
EPSS Trends
Current EPSS score: 0.03%• Percentile: 10%
Techniques & Countermeasures
- CWE-22•Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected Systems
- PyPI•ansible
< 2.5.15 | ≥ 2.6.0a1, < 2.6.14 | ≥ 2.7.0a1, < 2.7.8 | ≥ 2.7.0, < 2.7.8
- red hat•ansible
2.5.15 | 2.6.14 | 2.7.8
- redhat•ansible
≥ 2.5.0, < 2.5.15 | ≥ 2.6.0, < 2.6.14 | ≥ 2.7.0, < 2.7.8
References (17)
- https://github.com/ansible/ansible/pull/52133
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-3828
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00021.html
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00077.html
- https://usn.ubuntu.com/4072-1/
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00020.html
- https://access.redhat.com/errata/RHSA-2019:3744
- https://access.redhat.com/errata/RHSA-2019:3789
- http://packetstormsecurity.com/files/172837/Ansible-Fetch-Path-Traversal.html
- https://nvd.nist.gov/vuln/detail/CVE-2019-3828
- https://github.com/ansible/ansible/commit/396a2f74717477d80600450e2b7e45349d7b5110
- https://github.com/ansible/ansible/commit/4be3215d2f9f84ca283895879f0c6ce1ed7dd333
- https://github.com/ansible/ansible/commit/f3edc091523fbe301926b7a0db25fbbd96940d93
- https://github.com/advisories/GHSA-74vq-h4q8-x6jv
- https://github.com/ansible/ansible
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2019-5.yaml
- https://usn.ubuntu.com/4072-1