ADVISORIES

GitHub Advisory Database

GHSA-frxj-5j27-f8rf

Externally Controlled Reference to a Resource in Another Sphere, Improper Input Validation, and External Control of File Name or Path in Ansible

Details

A vulnerability was found in Ansible Engine versions 2.9.x before 2.9.3, 2.8.x before 2.8.8, 2.7.x before 2.7.16 and earlier, where in Ansible's nxos_file_copy module can be used to copy files to a flash or bootflash on NXOS devices. Malicious code could craft the filename parameter to perform OS command injections. This could result in a loss of confidentiality of the system among other issues.

Affected packages

EcosystemPackageAffected versions
PyPIansible
From 2.7.0a1 before 2.7.16 (fixed in 2.7.16)
PyPIansible
From 2.8.0a1 before 2.8.8 (fixed in 2.8.8)
PyPIansible
From 2.9.0a1 before 2.9.3 (fixed in 2.9.3)

References