CVE-2024-29180
Last modified
CVE-2024-29180 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Prior to versions 7.1.0, 6.1.2, and 5.3.4, the webpack-dev-middleware development middleware for devpack does not validate the supplied URL address sufficiently before returning the local file. It is possible to access any file on the developer's machine. EPSS estimates a 1.20% chance of exploitation in the next 30 days.
Description
Prior to versions 7.1.0, 6.1.2, and 5.3.4, the webpack-dev-middleware development middleware for devpack does not validate the supplied URL address sufficiently before returning the local file. It is possible to access any file on the developer's machine. The middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory `memfs` filesystem. If `writeToDisk` configuration option is set to `true`, the physical filesystem is used. The `getFilenameFromUrl` method is used to parse URL and build the local file path. The public path prefix is stripped from the URL, and the `unsecaped` path suffix is appended to the `outputPath`. As the URL is not unescaped and normalized automatically before calling the midlleware, it is possible to use `%2e` and `%2f` sequences to perform path traversal attack. Developers using `webpack-dev-server` or `webpack-dev-middleware` are affected by the issue. When the project is started, an attacker might access any file on the developer's machine and exfiltrate the content. If the development server is listening on a public IP address (or `0.0.0.0`), an attacker on the local network can access the local files without any interaction from the victim (direct connection to the port). If the server allows access from third-party domains, an attacker can send a malicious link to the victim. When visited, the client side script can connect to the local server and exfiltrate the local files. Starting with fixed versions 7.1.0, 6.1.2, and 5.3.4, the URL is unescaped and normalized before any further processing.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Webpack.Js | Webpack-Dev-Middleware | < 5.3.4 |
| Webpack.Js | Webpack-Dev-Middleware | >= 6.0.0, < 6.1.2 |
| Webpack.Js | Webpack-Dev-Middleware | >= 7.0.0, < 7.1.0 |
References
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6Exploit, Vendor Advisory
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0Product, Release Notes
- https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-29180?
How severe is CVE-2024-29180?
How do I fix CVE-2024-29180?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-29175Dell PowerProtect Data Domain, versions prior to 7.13.0.0, L…5.9
- CVE-2024-29176Dell PowerProtect DD, version(s) 8.0, 7.13.1.0, 7.10.1.30, 7…8.8
- CVE-2024-29177Dell PowerProtect DD, versions prior to 8.0, LTS 7.13.1.0, L…2.7
- CVE-2024-29178On versions before 2.1.4, a user could log in and perform a …8.8
- CVE-2024-29179phpMyFAQ is an open source FAQ web application for PHP 8.1+ …4.8
- CVE-2024-2918Improper input validation in PAM JIT elevation feature in De…3.6
- CVE-2024-29181Strapi is an open-source content management system. Prior to…3.5
- CVE-2024-29182Collabora Online is a collaborative online office suite base…6.1
- CVE-2024-29183OpenRASP is a RASP solution that directly integrates its pro…6.1
- CVE-2024-29184FreeScout is a self-hosted help desk and shared mailbox. A S…8
- CVE-2024-29185FreeScout is a self-hosted help desk and shared mailbox. Ver…9
- CVE-2024-29186Bref is an open-source project that helps users go serverles…5.3
Are you affected by CVE-2024-29180?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
