CVE-2024-21537
HIGH 8.9CVSS 4.0lilconfig Code Injection vulnerability
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.
- Published
- 31 Oct 2024
- Last modified
- 29 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-fq9m-v26v-2m4f
- Sources
- NVDJSONOSV GHSA-fq9m-v26v-2m4fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 4.0 | HIGH 8.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | lilconfig | >= 3.1.0, < 3.1.1 | 3.1.1 |
References
- https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7 · WEB
- https://github.com/antonk52/lilconfig/pull/48 · WEB
- https://github.com/antonk52/lilconfig/releases/tag/v3.1.1 · WEB
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8323736
- https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21537 · ADVISORY
- https://github.com/antonk52/lilconfig · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 31 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Oct 2024)