Vulnerability · Published Oct 31, 2024 · Assigned by snyk
CVE-2024-21537
High 8.8
In plain English
A high-severity code injection in lilconfig. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.8High
Exploit odds (30 days)1.1%top 33.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | lilconfig | 3.1.1 | GHSA-fq9m-v26v-2m4f |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | lilconfig | 3.1.0 – before 3.1.1 |
| n/a | org.webjars.npm:lilconfig | 3.1.0 – before 3.1.1 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P
References
- https://security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-8323736
- https://github.com/antonk52/lilconfig/pull/48
- https://github.com/antonk52/lilconfig/releases/tag/v3.1.1
- https://github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7