Skip to main content

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

HIGH

LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name

Published October 1, 2024Updated October 1, 2024Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.79%). 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-47524 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 create a Device Groups, the application did not properly sanitize the user input in the Device Groups name, when user see the detail of the Device Group, if java script code is inside the name of the Device Groups, its will be trigger.

PoC

  1. Login as an Admin role user. Then go over to "$URL/device-groups"

  2. Create a new Device Group with this payload in their name

<img src="x" onerror="alert(document.cookie)">

  1. Go over to the detail page of that Device Groups, in this case "$URL/devices/group=2". Will see a pop-up.

Impact

Attacker can use this to perform malicious java script code for malicious intent. This would impact all users as anyone can have access to the detail page of the device group.

Advisory Timeline

  • First published October 1, 2024 (786 days ago).
  • Last revised October 1, 2024 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update librenms/librenms to 24.9.0 or later
composer require "librenms/librenms:^24.9.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 (+124 more)24.9.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-47524?
LibreNMS has Stored Cross-site Scripting vulnerability in "Device Group" Name. 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-47524?
CVE-2024-47524 affects librenms/librenms. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-47524 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.79%
EPSS percentile: 52.8

This is an above-median EPSS score — 52.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-fc38-2254-48g7

Related CVEs

  • CVE-2024-49754
    HIGH

    LibreNMS has a stored XSS ('Cross-site Scripting') in librenms/includes/html/pages/api-access.inc.php

  • CVE-2025-54138
    HIGH

    LibreNMS has Authenticated Remote File Inclusion in ajax_form.php that Allows RCE

  • CVE-2024-51497
    HIGH

    LibreNMS has a Stored XSS ('Cross-site Scripting') in librenms/includes/html/print-customoid.php

  • CVE-2026-26988
    HIGH

    LibreNMS: SQL Injection in ajax_table.php spreads through a covert data stream.

  • CVE-2025-62411
    MEDIUM

    LibreNMS has a Stored XSS vulnerability in its Alert Transport name field

  • CVE-2025-23201
    MEDIUM

    Librenms has a reflected XSS on error alert

  • CVE-2026-26987
    MEDIUM

    LibreNMS affected by reflected xss via email field

  • CVE-2024-47526
    LOW

    LibreNMS has Stored Cross-site Scripting vulnerability in "Alert Templates" feature

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock