antonk52/lilconfig · Security
lilconfig Code Injection vulnerability
- GHSA ID
- GHSA-fq9m-v26v-2m4f
- CVE ID
- CVE-2024-21537
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
Versions of the package lilconfig from 3.1.0 and before 3.1.1 are vulnerable to Arbitrary Code Execution due to the insecure usage of eval in the dynamicImport function. An attacker can exploit this vulnerability by passing a malicious input through the defaultLoaders function.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21537 ↗
- https://github.com/antonk52/lilconfig/pull/48 ↗
- https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7 ↗
- https://github.com/antonk52/lilconfig/releases/tag/v3.1.1 ↗
- https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789 ↗
- https://github.com/advisories/GHSA-fq9m-v26v-2m4f ↗