Red Hat VEX
RHVEX-CVE-2026-4800
lodash: lodash: Arbitrary code execution via untrusted input in template imports
Details
A flaw was found in lodash. The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink. Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | librados-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | librados2 | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | libradospp-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | librbd-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | librbd1 | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | cockpit | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-bridge | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-dashboard | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-doc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-machines | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-packagekit | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-pcp | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-podman | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-storaged | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-system | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | cockpit-ws | All versions, will not be fixed |
| Red Hat:enterprise_linux:9 | librados-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | librados2 | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | libradospp-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | librbd-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | librbd1 | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-4800
- https://bugzilla.redhat.com/show_bug.cgi?id=2453496
- https://www.cve.org/CVERecord?id=CVE-2026-4800
- https://nvd.nist.gov/vuln/detail/CVE-2026-4800
- https://cna.openjsf.org/security-advisories.html
- https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc