Skip to main content
Mallory
UnratedVulnerability

CVE-2023-47401: Root RCE in Nagios XI Migration via Ansible Vault File Injection

Updated 6 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS-Not scored
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2023-47401CWE-94

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.