Skip to main content

CVE-2024-50355 — Vulnerability in librenms/librenms — CVE Details

HIGH

LibreNMS has a Persistent XSS from Insecure Input Sanitization Affects Multiple Endpoints

Published November 15, 2024Updated November 15, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.50%). Schedule for your next planned update.

Does your project use an affected librenms/librenms version?

Paste your composer.lock to check it for CVE-2024-50355 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

Summary

The application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.

Details

User with Admin role can edit the Display Name of a device, the application did not properly sanitize the user input in the device Display Name, if java script code is inside the name of the device Display Name, its can be trigger from different sources.

PoC

  1. Use an Admin role user to change the Display Name of a device into the payload <img src="x" onerror="alert(document.cookie)">

2.1. Go to manage user and choose Manage Access

2.2. A pop-up will show

3.1. Create a new Alert Rule where it will check if the device is up or down by using ICMP and then add the rule to the device.

3.2. Once the device is down, there will be an alert in the Alerts Notifications

3.3. Hover over the Hostname will see a pop-up.

4.1. The same can be trigger in the Alert History once hover over the Device field.

5.1. The same can be trigger once hover over the Hostname field from the Event Log of the device.

6.1. The same can be trigger in the Outages function in the Logs of the device.

7.1. In the Active Alerts of the device.

8.2. In the Alert History of the device.

9.1. They can also be trigger in the dashboard.

10.1. Also if change the payload into <img src="x" onerror="alert(document['cookie'])">, it can also be trigger in the Availability Map.

Impact

It could allow authenticated users to execute arbitrary JavaScript code in the context of other users' sessions. Impacted users could have their accounts compromised, enabling the attacker to perform unauthorized actions on their behalf.

Advisory Timeline

  • First published November 15, 2024 (741 days ago).
  • Last revised November 15, 2024 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update librenms/librenms to 24.10.0 or later
composer require "librenms/librenms:^24.10.0"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
librenms/librenms Packagist · Affected: 1.19, 1.20, 1.20.1, 1.21 (+126 more)24.10.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-50355?
LibreNMS has a Persistent XSS from Insecure Input Sanitization Affects Multiple Endpoints. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.2/10).
How do I check if my project is affected by CVE-2024-50355?
CVE-2024-50355 affects librenms/librenms. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-50355 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.50%
EPSS percentile: 35.7

This is a below-median EPSS score — only 35.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-4m5r-w2rq-q54q

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock