CVE-2019-14905: Ansible Engine - OS Command Injection in nxos_file_copy Module

ansible Updated 02 Oct 2025

Summary

31/03/2020
Yes i
High
5.6

CVE-2019-14905: 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... Affects ansible across 3 version ranges.

>= 2.7.0, < 2.7.16 >= 2.8.0, < 2.8.8 >= 2.9.0, < 2.9.3

Fixed in 2.7.16, 2.8.8 or 2.9.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2019-14905 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Ansible Engine is an open-source automation platform that allows users to automate IT tasks such as configuration management, application deployment, and orchestration. It provides a simple and powerful way to automate complex tasks across a wide range of systems. The nxos_file_copy module in Ansible Engine is used to copy files to a flash or bootflash on NXOS devices. This module is vulnerable to OS command injection, where an attacker can manipulate the filename parameter to execute arbitrary commands on the target system. This vulnerability affects 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.

Vulnerability Detail

The vulnerability in Ansible Engine's nxos_file_copy module allows an attacker to inject malicious OS commands by manipulating the filename parameter. By crafting a specially crafted filename, an attacker can execute arbitrary commands on the target system. This can lead to a loss of confidentiality of the system and potentially other security issues. The vulnerability affects 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.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.7.0, < 2.7.16 2.7.16
    pip install --upgrade "ansible==2.7.16"
  • >= 2.8.0, < 2.8.8 2.8.8
    pip install --upgrade "ansible==2.8.8"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "ansible==2.9.3"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the latest patched versions of Ansible Engine as mentioned in the 'how_to_fix' section.

Conclusion

The vulnerability in Ansible Engine's nxos_file_copy module allows for OS command injection, which can lead to a loss of system confidentiality and other security issues. It is crucial to upgrade to the latest patched versions of Ansible Engine to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ansible →

Share this vulnerability

FAQ

Ansible Engine is an open-source automation platform used for configuration management, application deployment, and orchestration.

The nxos_file_copy module in Ansible Engine is used to copy files to a flash or bootflash on NXOS devices.

OS command injection is a vulnerability that allows an attacker to execute arbitrary commands on a target system by manipulating input parameters.

This vulnerability can result in a loss of confidentiality of the system and potentially other security issues.

To fix this vulnerability, upgrade to the latest patched versions of Ansible Engine as mentioned in the 'how_to_fix' section.

Related vulnerabilities

Recent vulnerabilities recorded for ansible.

How To Fix

Latest published version: 14.5.0 as of 22 Oct 2026

pip install --upgrade "ansible==14.5.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.7.0, < 2.7.16 2.7.16
    pip install --upgrade "ansible==2.7.16"
  • >= 2.8.0, < 2.8.8 2.8.8
    pip install --upgrade "ansible==2.8.8"
  • >= 2.9.0, < 2.9.3 2.9.3
    pip install --upgrade "ansible==2.9.3"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback