CVE-2021-44534
Medium · 6.5CVSS
6.5
EPSS
0.6%
Published
May 31, 2024
CISA due date
—
Cloudanix analysis
Attackers can trick the system into showing private files it should keep hidden, without needing any login.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Insufficient input filtering on file paths allows an unauthenticated remote attacker to traverse directories and read arbitrary server files, resulting in disclosure of sensitive data such as configuration or credentials.
Why it matters to the business
Exposure of confidential files can lead to data breaches, loss of intellectual property, compliance violations, and serve as a stepping stone for further attacks, with stable low exploit probability but high potential impact if triggered.
How an attack unfolds
An attacker identifies a vulnerable endpoint accepting user-controlled paths, submits requests containing traversal sequences such as ../ or encoded equivalents to escape the intended directory, and retrieves the contents of targeted files in the server response.
How to fix it
Enforce strict allow-list validation on all file path inputs, reject traversal sequences, canonicalize paths before use, and deploy software updates containing fixes as they become available.
How to confirm the fix worked
Test endpoints with known traversal payloads such as ../../etc/passwd and confirm that responses no longer return file contents; review source code for path-handling functions and ensure sanitization is present.
Typical attack path
- Map application endpoints that accept file or path parameters
- Inject directory traversal payloads into unauthenticated requests
- Escalate to reading sensitive system or application files
- Use disclosed data to pivot toward additional compromise
How to detect it
Inspect web server and application logs for HTTP requests containing repeated ../ sequences, encoded equivalents such as %2e%2e%2f, or unusual file extensions in parameters associated with file serving functionality.
- ../
- %2e%2e/
- ..%2f
- ..%5c
- GET.*\?file=.*\.\./
What your security team should do
- Prioritize patching once fixed versions are released given the 873-day disclosure window
- Implement web application firewall rules to block traversal patterns
- Perform targeted code audits on file-access logic
- Monitor logs for anomalous path patterns until mitigation is complete
The record
Insufficient user input filtering leads to arbitrary file read by non-authenticated attacker, which results in sensitive information disclosure.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:20.04:LTS | nodejs | 0 | No fix |
| Ubuntu:22.04:LTS | nodejs | 0 | No fix |
| Ubuntu:24.04:LTS | nodejs | 0 | No fix |
| Ubuntu:24.10 | nodejs | 0 | No fix |
| Ubuntu:25.04 | nodejs | 0 | No fix |
| Ubuntu:25.10 | nodejs | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | nodejs | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | nodejs | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | nodejs | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | nodejs | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | nodejs | 0 | No fix |
Related vulnerabilities
- CVE-2025-23085 A memory leak could occur when a remote peer abruptly closes the socket without sending a… Also affects nodejs
- CVE-2025-23084 A vulnerability has been identified in Node.js, specifically affecting the handling of… Also affects nodejs
- CVE-2025-23083 With the aid of the diagnostics_channel utility, an event can be hooked into whenever a… Also affects nodejs
- CVE-2024-37372 The Permission Model assumes that any path starting with two backslashes \ has a… Also affects nodejs
- CVE-2023-39333 Maliciously crafted export names in an imported WebAssembly module can inject JavaScript… Also affects nodejs
- CVE-2023-46809 Node.js versions which bundle an unpatched version of OpenSSL or run against a… Also affects nodejs
- CVE-2024-36137 A vulnerability has been identified in Node.js, affecting users of the experimental… Also affects nodejs
- CVE-2024-36138 Bypass incomplete fix of CVE-2024-27980, that arises from improper handling of batch… Also affects nodejs