CVE-2022-38251
Medium · 4.8CVSS
4.8
EPSS
2.1%
Published
Sep 7, 2022
CISA due date
—
Cloudanix analysis
A problem in the monitoring tool's settings page lets attackers slip harmful code into administrators' browsers that could steal login details or change important configurations.
- Exploitation
- Requires User Interaction
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits injection and persistent storage of arbitrary JavaScript payloads on the System Performance Settings page; when the page is rendered, the script executes in the browsers of other authenticated administrators without additional sanitization or output encoding.
Why it matters to the business
Compromise of administrative sessions can expose monitoring configuration, alert data, and connected infrastructure credentials, enabling broader network reconnaissance or disruption with minimal attacker effort.
How an attack unfolds
An attacker with administrative access crafts a malicious payload in a performance setting field; the payload is stored server-side and later executed when another administrator loads the page, allowing cookie theft, DOM manipulation, or further administrative actions.
How to fix it
Upgrade Nagios XI to the latest available version that resolves stored XSS issues on administrative pages; as an interim step restrict administrative access to trusted networks and enable web application firewall rules that sanitize or block script tags in form submissions.
How to confirm the fix worked
Review release notes of installed Nagios XI versions for XSS fixes on the System Performance Settings page, retest the page by attempting to store and render a benign script, and confirm that Content-Security-Policy headers now block inline script execution.
Typical attack path
- Obtain administrative credentials or access to the Admin panel
- Navigate to System Performance Settings and insert a crafted script payload
- Save the settings so the payload persists in the application
- Wait for another administrator to view the affected page
- Harvest session tokens or perform actions on behalf of the victim administrator
How to detect it
Inspect web server and application logs for HTTP POST requests to performance settings endpoints containing script tags or event handlers; examine browser console errors or unexpected outbound requests from administrator sessions for signs of prior payload execution.
What your security team should do
- Prioritize upgrade of all Nagios XI instances to a patched release
- Enforce least-privilege administrative accounts and network segmentation for the console
- Deploy WAF rules targeting script injection in administrative form fields
- Monitor administrative page views for anomalous script execution attempts
The record
Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via the System Performance 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-38247 Nagios XI v5.8.6 was discovered to contain a cross-site scripting (XSS) vulnerability via… Also affects icinga
- 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-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