OS Command Injection in command-injection
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
There's a vulnerability in older versions of LibreNMS that allows attackers to run malicious code remotely. Specifically, it involves creating unsafe directory names or modifying critical system settings in LibreNMS, leading to potential unauthorized actions. The problem has been fixed in later versions, so updating your software is crucial to prevent exploitation. It is advised for companies to upgrade immediately to avoid these risks.
The vulnerability is due to OS command injection in LibreNMS's AboutController.php's index(), SettingsController.php's update(), and PollDevice.php's initRrdDirectory() methods. Attackers can exploit this by inserting a path containing meta-characters into the snmpget configuration parameter. Versions prior to 24.10.0 are affected, with the issue fixed in 24.10.0. Detecting if your system is vulnerable involves searching for specific log entries or anomalous directory names.
A vulnerability in LibreNMS before version 24.10.0 allowing authenticated OS command injection.
AboutController.php (index), SettingsController.php (update), PollDevice.php (initRrdDirectory).
Critical - enables remote code execution.
Upgrade to LibreNMS version 24.10.0 or later.
No workaround specified; upgrading is recommended.
Check for anomalous directory names and suspicious log entries.
Related past incidentsSimilar incidents extracted from past CVEs
PrintNightmare vulnerability allowing RCE via Print Spooler service.
Windows CryptoAPI vulnerability affecting certificate validations.
OpenSSL vulnerability allowing data leakage from memory.
If this happens at your companyExpected impact per business scenario
Remote code execution could lead to unauthorized access to servers.
Critical configuration settings could be altered by an attacker, affecting system integrity.
Exposed system settings could be used to pivot to further internal attacks.
Organizations should immediately update LibreNMS to the latest version to mitigate this vulnerability.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
Audit SBOM/dependencies for affected components.依存マニフェストで影響コンポーネントを特定する。
-
2
Match against affected rangeverify
Confirm if version satisfies `<= 24.9.1`Step 1 で見つかったバージョンが影響範囲
<= 24.9.1に該当するか照合。本番で稼働中ならインシデント扱い。 -
7
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| composerlibrenms/librenms |
< 24.10.0→ 24.10.0 |
24.10.0 |
| Packagistlibrenms/librenms |
< 24.10.0→ 24.10.0 |
24.10.0 |
Original description The description as published by the source.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutController.php's index(), SettingsController.php's update(), and PollDevice.php's initRrdDirectory().
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- exploit github.com
- exploit cve@mitre.org
- package github.com
- web github.com