CVE-2019-3828: Ansible Path Traversal vulnerability
4.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.125%
CWE
Published
4/15/2019
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
ansible | pip | < 2.5.15 | 2.5.15 |
ansible | pip | >= 2.6.0a1, < 2.6.14 | 2.6.14 |
ansible | pip | >= 2.7.0a1, < 2.7.8 | 2.7.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path validation in the fetch module's handling of remote paths. The GitHub patch shows a critical addition of a '..' check in the _remote_expand_user method of ActionBase (in lib/ansible/plugins/action/init.py). This function is responsible for resolving remote user home directories, and prior to the patch, it allowed paths with '..' components, leading to directory traversal. The added validation in the commit 396a2f7 directly addresses this by raising an error when '..' is detected in the path. The accompanying unit test in test_action.py confirms this was the vulnerable point by testing the path traversal scenario.