CVE-2023-47401: Root RCE in Nagios XI Migration via Ansible Vault File Injection
CVE-2023-47401 is a critical remote code execution vulnerability in Nagios XI, affecting the migration feature in versions including 5.11.1. According to the provided content, the migration page at /nagiosxi/admin/migrate.php passes attacker-supplied IP address, username, and password values to a PHP migration script executed via sudo as root. A high-privileged attacker can inject attacker-controlled Ansible playbook or vault content into this workflow. Because the injected YAML can invoke Ansible functionality such as lookup("pipe", ...), arbitrary shell commands can be executed on the Nagios XI server with root privileges. The issue is described as an Ansible vault file injection flaw in the migration feature and was mitigated in Nagios XI 5.11.4.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in arbitrary command execution as root on the Nagios XI server. The provided content states this can be used to exfiltrate root SSH keys and obtain a reverse shell running with root privileges. Given Nagios XI's role as a centralized monitoring and management platform, compromise of the server can also enable broader administrative compromise of monitored infrastructure and connected hosts.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict access to the migration functionality at /nagiosxi/admin/migrate.php to only fully trusted administrators, disable or temporarily remove access to the migration feature where operationally feasible, and tightly control sudo execution paths associated with migration scripts. Monitor for unexpected migration jobs, suspicious Ansible content, root-level process execution, outbound reverse-shell behavior, and unauthorized access to root SSH keys. Reduce the number of accounts with privileges sufficient to access the migration workflow.
Remediation
Patch, then assume compromise.
Upgrade Nagios XI to version 5.11.4 or later, as the provided content states that version 5.11.4 mitigated this vulnerability along with the related issues in the advisory. Apply the vendor's fixes to the migration feature so that attacker-controlled input is not incorporated into root-executed migration scripts or Ansible vault/playbook content.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2023-47401 exploited in the wild?
- As of Jun 9, 2026, Mallory has no reports of CVE-2023-47401 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-47401?
- As of Jun 9, 2026, Mallory has found no public exploit for CVE-2023-47401.
- Is there a patch for CVE-2023-47401?
- Upgrade Nagios XI to version 5.11.4 or later, as the provided content states that version 5.11.4 mitigated this vulnerability along with the related issues in the advisory. Apply the vendor's fixes to the migration feature so that attacker-controlled input is not incorporated into root-executed migration scripts or Ansible vault/playbook content.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.