BEMS API - Arbitrary File Read (CVE-2021-4463)
Description
Longjing Technology BEMS API versions up to and including 1.21 contains an unauthenticated arbitrary file download vulnerability in the 'downloads' endpoint. The 'fileName' parameter is not properly sanitized, allowing attackers to craft traversal sequences and access sensitive files outside the intended directory.
psychologyCrowdSec Analysis
CVE-2021-4463 is a high-severity vulnerability in Longjing Technology BEMS API up to version 1.21, where the 'downloads' endpoint fails to properly sanitize the 'fileName' parameter. This flaw allows unauthenticated attackers to exploit directory traversal and download arbitrary files from the server, potentially exposing sensitive system or configuration data. Attackers could leverage this vulnerability to gain unauthorized access to confidential information, increasing the risk of further compromise.
CrowdSec has been tracking this vulnerability and its exploits since 3rd of June 2026.
CrowdSec network observations suggest that most exploitation of CVE-2021-4463 involves focused reconnaissance to identify viable targets. Attackers typically tailor their campaigns based on system exposure and configuration. It is unlikely that a given attack is accidental. CrowdSec network telemetry also shows that exploitation of CVE-2021-4463 has significantly declined over the past week. Attack volumes are well below the long-term average, suggesting attackers are rapidly losing interest. The vulnerability appears to be falling out of active use across most threat landscapes.
Attackers exploit the /api/downloads endpoint by supplying directory traversal sequences in the fileName parameter to download arbitrary files from the server.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2025-11-12 |
| Rule Released | 2026-06-03 |
| CrowdSec First Seen | 2026-06-05 |
Related Weaknesses
The product makes files or directories accessible to unauthorized actors, even though they should not be.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Remediation & Protection
External References
- https://packetstormsecurity.com/files/163702
- https://web.archive.org/web/20220527162453/http://www.ljkj2012.com/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/206477
- https://cxsecurity.com/issue/WLB-2021070173
- https://www.vulncheck.com/advisories/longjing-technology-bems-api-remote-arbitrary-file-download
- https://www.zeroscience.mk/en/vulnerabilities/ZSL-2021-5657.php
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-4463.yaml