# CVE-2024-21537: lilconfig Code Injection vulnerability

- Severity: Critical 9.3 (CVSS:4.0, scored by snyk) `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`
- 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): 1.13%, higher than 67% of CVEs (2026-12-01)
- Published: 2024-10-31T05:00:03.948Z
- Modified: 2026-08-17T15:25:17.480Z
- Also known as: GHSA-fq9m-v26v-2m4f
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- lilconfig: from 3.1.0 before 3.1.1
- org.webjars.npm:lilconfig: from 3.1.0 before 3.1.1
- antonk52 lilconfig: from 3.1.0 before 3.1.1
- lilconfig (npm): from 3.1.0 before 3.1.1

## Every score

- snyk: CVSS:4.0 9.3 Critical `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`
- snyk: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789> (web)
- <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8323736>
- <https://github.com/antonk52/lilconfig/pull/48> (web)
- <https://github.com/antonk52/lilconfig/releases/tag/v3.1.1> (web)
- <https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21537> (advisory)
- <https://github.com/antonk52/lilconfig> (package)

## Sources

- CVE List: [CVE-2024-21537](https://www.cve.org/CVERecord?id=CVE-2024-21537), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-fq9m-v26v-2m4f](https://github.com/advisories/GHSA-fq9m-v26v-2m4f), CC-BY-4.0, modified 2024-11-01
- NVD: [CVE-2024-21537](https://nvd.nist.gov/vuln/detail/CVE-2024-21537), Public domain, modified 2026-07-29

---

Page: https://cve.day/CVE-2024-21537 · Whole record: https://cve.day/CVE-2024-21537.json · Rebuilt by cve.day 2026-11-25T22:58:47.547Z
