VDB
Sign up
MEDIUM5.6

PYSEC-2020-206

Quick fix

PYSEC-2020-206 — ansible: upgrade to the fixed version with the command below.

pip install --upgrade 'ansible>=2.7.16'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/ansible
Introduced in: 2.7.0Fixed in: 2.7.16
Fixpip install --upgrade 'ansible>=2.7.16'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/ansible"]}'