# CVE-2022-4068: Improperly Controlled Modification of Dynamically-Determined Object Attributes in librenms/librenms

- Severity: High 7.6 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 44.5%, higher than 98% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-20T00:00:00.000Z
- Modified: 2026-06-17T05:19:54.307Z
- Also known as: GHSA-f3hw-3h74-wr98
- Weaknesses: CWE-79, CWE-915
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntrdev

## Description

A user is able to enable their own account if it was disabled by an admin while the user still holds a valid session. Moreover, the username is not properly sanitized in the admin user overview. This enables an XSS attack that enables an attacker with a low privilege user to execute arbitrary JavaScript in the context of an admin's account.

(As written by CVE List.)

## Affected

- librenms librenms/librenms: from unspecified before 22.10.0
- librenms/librenms (Packagist): before 22.10.0
- librenms librenms: before 22.10.0

## Every score

- @huntrdev: CVSS:3.0 7.6 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.0 7.6 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.dev/bounties/becfecc4-22a6-4f94-bf83-d6030b625fdc> (exploit, patch, third-party-advisory, web)
- <https://github.com/librenms/librenms/commit/09a2977adb8bc4b1db116c725d661160c930d3a1> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4068> (advisory)
- <https://github.com/librenms/librenms> (package)

## Sources

- CVE List: [CVE-2022-4068](https://www.cve.org/CVERecord?id=CVE-2022-4068), CVE Terms of Use, modified 2025-04-25
- GitHub Advisory Database: [GHSA-f3hw-3h74-wr98](https://github.com/advisories/GHSA-f3hw-3h74-wr98), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-4068](https://nvd.nist.gov/vuln/detail/CVE-2022-4068), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4068 · Whole record: https://cve.day/CVE-2022-4068.json · Rebuilt by cve.day 2026-11-25T22:58:16.701Z
