Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lilconfig
  4. ›
  5. CVE-2024-21537

CVE-2024-21537: lilconfig Code Injection vulnerability

October 31, 2024 (updated November 1, 2024)

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.

References

  • github.com/advisories/GHSA-fq9m-v26v-2m4f
  • github.com/antonk52/lilconfig
  • github.com/antonk52/lilconfig/commit/2c68a1ab8764fc74acc46771e1ad39ab07a9b0a7
  • github.com/antonk52/lilconfig/pull/48
  • github.com/antonk52/lilconfig/releases/tag/v3.1.1
  • nvd.nist.gov/vuln/detail/CVE-2024-21537
  • security.snyk.io/vuln/SNYK-JS-LILCONFIG-6263789

Code Behaviors & Features

Detect and mitigate CVE-2024-21537 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1.0 before 3.1.1

Fixed versions

  • 3.1.1

Solution

Upgrade to version 3.1.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/lilconfig/CVE-2024-21537.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:46 +0000.