CVE-2026-5638
Path Traversal in HerikLyma CPPWebFramework Allows Remote Exploitation
Publication date: 2026-04-06
Last updated on: 2026-04-06
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| heriklyma | cppwebframework | to 3.1 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | 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. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
CVE-2026-5638 is a path traversal vulnerability in the HerikLyma CPPWebFramework up to version 3.1. The framework improperly concatenates user-supplied URLs with the web root path without sanitizing sequences like "../", which allows attackers to traverse directories outside the intended web root.
This vulnerability enables remote attackers to read arbitrary files on the host system that have certain whitelisted file extensions, such as .ini, .txt, .xml, .json, .zip, .php, .html, .rar, .doc, .pdf, .mp3, and .mp4, without authentication.
An example exploit involves sending a crafted HTTP GET request with a path traversal payload (e.g., GET /../../../../home/Test.txt) to retrieve files outside the web root, including sensitive configuration files like CPPWeb.ini.
How can this vulnerability impact me? :
This vulnerability allows remote attackers to read arbitrary files on the server without authentication by exploiting path traversal. This can lead to unauthorized disclosure of sensitive information, such as configuration files and other data stored on the host.
Such unauthorized file access can compromise the confidentiality of the system, potentially exposing secrets, credentials, or other sensitive data that could be leveraged for further attacks.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by attempting to exploit the path traversal flaw through crafted HTTP GET requests that include directory traversal sequences (e.g., "../") to access files outside the web root.
For example, sending a request like GET /../../../../home/Test.txt to the affected server can reveal if arbitrary files can be read without authentication.
A practical detection method is to use tools like curl or wget to send such crafted requests and observe if the server returns the contents of files outside the intended directory.
- curl -v "http://target-server/../../../../home/Test.txt"
- wget --server-response "http://target-server/../../../../home/Test.txt"
Additionally, a Python proof-of-concept script exists that sends specially crafted GET requests bypassing URL normalization to confirm the vulnerability.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include restricting or disabling access to the vulnerable CPPWebFramework instance until a patch or official fix is available.
Since the vulnerability allows unauthenticated remote file reads via path traversal, it is critical to implement input validation and sanitization to prevent directory traversal sequences in URLs.
As a temporary measure, consider deploying web application firewalls (WAFs) or intrusion detection systems (IDS) to block requests containing suspicious path traversal patterns such as "../".
Monitor logs for unusual access patterns attempting to read sensitive files like CPPWeb.ini or other configuration files.
If possible, isolate the affected service in a restricted network segment to limit exposure.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability allows unauthenticated remote attackers to perform path traversal and read arbitrary files on the host system, including sensitive configuration files such as CPPWeb.ini.
This unauthorized access to sensitive files could lead to exposure of personal or confidential data, which may violate data protection requirements under regulations like GDPR or HIPAA.
Therefore, exploitation of this vulnerability could compromise compliance with standards that mandate protection of sensitive information and secure access controls.