CVE-2022-38247
Medium · 4.8CVSS
4.8
EPSS
2.1%
Published
Sep 7, 2022
CISA due date
—
Cloudanix analysis
A flaw in the administrative settings area lets attackers slip in hidden code that could run when another admin views the page, potentially exposing internal monitoring data or accounts.
- Exploitation
- Requires User Interaction
- Attacker needs
- High Privilege
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits injection of arbitrary JavaScript into the System Settings page rendered for administrative users, enabling execution of attacker-controlled scripts in the context of other users' sessions.
Why it matters to the business
Successful exploitation can lead to unauthorized access to administrative functions, exposure of sensitive monitoring data, and potential lateral movement within the organization's infrastructure, increasing operational risk and compliance exposure.
How an attack unfolds
An attacker with administrative access crafts malicious input containing script tags or event handlers, saves it via the System Settings page, and waits for another administrator to view the page, triggering script execution that can hijack the session or exfiltrate credentials.
How to fix it
Upgrade Nagios XI to a version that sanitizes or escapes user-supplied input on the System Settings page; apply vendor-supplied patches or configuration hardening to disable unnecessary HTML rendering in administrative interfaces.
How to confirm the fix worked
Review the System Settings page source after applying updates to confirm absence of unsanitized input rendering; conduct authenticated penetration testing focused on input fields under the Admin panel.
Typical attack path
- Obtain administrative credentials or access to the Nagios XI Admin panel
- Navigate to System Settings and inject XSS payload into configurable fields
- Persist the payload by saving the settings
- Induce a second administrator to load the affected page
- Execute session hijacking, cookie theft, or further privilege escalation via the running script
How to detect it
Inspect web server and application logs for unexpected script tags or event handlers submitted to System Settings endpoints; correlate with admin session activity and look for outbound requests or DOM modifications originating from the settings page.
- POST requests to /admin/systemsettings containing script, onerror, or onload attributes
- Unusual JavaScript execution traces in browser developer console when loading System Settings
- Log entries showing HTML entities or script blocks persisted in configuration files under /usr/local/nagiosxi
What your security team should do
- Prioritize patching or upgrading Nagios XI instances to eliminate the XSS vector
- Implement web application firewall rules to block common XSS patterns targeting administrative endpoints
- Enforce least-privilege access and monitor admin session activity for anomalous behavior
- Schedule regular code reviews and input sanitization audits for all administrative interfaces
The record
Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via the System Settings page under the Admin panel.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | icinga | 0 | No fix |
| Ubuntu:16.04:LTS | nagios3 | 0 | No fix |
| Ubuntu:18.04:LTS | icinga | 0 | No fix |
| Ubuntu:18.04:LTS | nagios3 | 0 | No fix |
| Ubuntu:20.04:LTS | nagios4 | 0 | No fix |
| Ubuntu:22.04:LTS | nagios4 | 0 | No fix |
| Ubuntu:24.04:LTS | nagios4 | 0 | No fix |
| Ubuntu:24.10 | nagios4 | 0 | No fix |
| Ubuntu:25.04 | nagios4 | 0 | No fix |
| Ubuntu:25.10 | nagios4 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | icinga | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | nagios3 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | icinga | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | nagios3 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | nagios4 | 0 | No fix |
Related vulnerabilities
- CVE-2022-38248 Nagios XI before v5.8.7 was discovered to contain multiple cross-site scripting (XSS)… Also affects icinga
- CVE-2022-38249 Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via… Also affects icinga
- CVE-2022-38250 Nagios XI v5.8.6 was discovered to contain a SQL injection vulnerability via the mib_name… Also affects icinga
- CVE-2022-38254 Nagios XI before v5.8.7 was discovered to contain a cross-site scripting (XSS)… Also affects icinga
- CVE-2022-38251 Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via… Also affects icinga
- CVE-2013-7108 Multiple off-by-one errors in Nagios Core 3.5.1, 4.0.2, and earlier, and Icinga before… Also affects nagios3
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79