Skip to main content
Vulnerability Database/CVE-2026-114040

CVE-2026-114040: DT42 BerryNet Path Traversal Vulnerability

CVE-2026-114040 is a path traversal flaw in DT42 BerryNet affecting the Model Package Metadata Handler that enables remote attackers to access unauthorized files. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114040 Overview

CVE-2026-114040 is a path traversal vulnerability [CWE-22] in DT42 BerryNet through version 3.10.2. The flaw resides in the DLModelManager.get_model_meta function within berrynet/dlmodelmgr.py, part of the Model Package Metadata Handler component. An attacker can manipulate the label argument to traverse directories outside the intended model package path. The exploit has been publicly disclosed and may be used by threat actors. The maintainers were notified through an issue report but have not responded.

Critical Impact

Remote attackers with low privileges can read arbitrary files accessible to the BerryNet process by supplying crafted label values that escape the model metadata directory.

Affected Products

  • DT42 BerryNet versions up to and including 3.10.2
  • Component: Model Package Metadata Handler (berrynet/dlmodelmgr.py)
  • Function: DLModelManager.get_model_meta

Discovery Timeline

  • 2026-10-21 - CVE-2026-114040 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-114040

Vulnerability Analysis

The vulnerability stems from unsanitized input handling in the get_model_meta method of the DLModelManager class. The method accepts a label argument that is used to construct a filesystem path to the model package metadata. Because the label value is not validated or normalized against a safe base directory, an attacker can supply traversal sequences such as ../ to resolve paths outside the intended model directory.

Successful exploitation allows reading files that the BerryNet process can access. The scope of impact is limited to confidentiality of files accessible to the service account, with no direct integrity or availability impact per the published CVSS vector.

Root Cause

The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The label parameter flows directly into a file path construction within DLModelManager.get_model_meta without canonicalization or verification that the resolved path remains within the designated model package directory.

Attack Vector

Exploitation requires network access and low-privilege authentication to the BerryNet service, along with some user interaction. An attacker submits a crafted label value containing directory traversal sequences through the model metadata interface. The handler then opens and returns the contents of a file outside the intended model package directory.

A proof-of-concept archive has been published publicly. Refer to the PoC Archive for BerryNet and the GitHub Issue #82 Discussion for technical details.

Detection Methods for CVE-2026-114040

Indicators of Compromise

  • Requests to BerryNet endpoints containing path traversal sequences such as ../, ..\, or URL-encoded variants (%2e%2e%2f) in the label parameter.
  • Access log entries referencing dlmodelmgr.py or get_model_meta with abnormal label values.
  • Unexpected file read operations by the BerryNet process targeting paths outside the configured model directory.

Detection Strategies

  • Inspect application and web server logs for label parameter values containing traversal characters or absolute paths.
  • Deploy filesystem auditing (for example auditd) on hosts running BerryNet to flag reads of sensitive files by the service account.
  • Apply web application firewall rules that match generic path traversal patterns on requests reaching the Model Package Metadata Handler.

Monitoring Recommendations

  • Monitor process-level file access from the BerryNet service for files outside its model directory.
  • Alert on repeated 2xx responses to requests containing suspicious label values, which may indicate successful file disclosure.
  • Correlate IoT and edge device telemetry with network traffic baselines to surface anomalous model-related API calls.

How to Mitigate CVE-2026-114040

Immediate Actions Required

  • Restrict network access to the BerryNet service to trusted management segments only.
  • Audit the BerryNet service account to ensure it runs with least privilege and cannot read sensitive host files.
  • Review existing logs for prior exploitation attempts using the detection indicators above.

Patch Information

At the time of publication, no vendor patch is available. The project maintainers were notified via issue report but have not responded. Monitor the GitHub BerryNet Repository and the GitHub Issue #82 Discussion for updates. Additional vulnerability context is available at VulDB CVE-2026-114040.

Workarounds

  • Place BerryNet behind a reverse proxy or WAF that strips or rejects traversal characters in request parameters.
  • Apply a local patch to DLModelManager.get_model_meta that canonicalizes the resolved path with os.path.realpath and verifies the result remains within the model base directory.
  • Run BerryNet in a container or chroot with read-only mounts and no access to sensitive host paths.
  • Disable or firewall the Model Package Metadata Handler endpoint if it is not required in your deployment.
bash
# Example: isolate BerryNet with a dedicated low-privilege user and restricted directory access
sudo useradd -r -s /usr/sbin/nologin berrynet
sudo chown -R berrynet:berrynet /opt/berrynet/models
sudo chmod -R 750 /opt/berrynet/models

# Example WAF rule concept (ModSecurity) to block traversal in the label parameter
# SecRule ARGS:label "@rx (\.\./|\.\.\\|%2e%2e%2f|%2e%2e/)" \
#   "id:1000114040,phase:2,deny,status:400,msg:'CVE-2026-114040 path traversal attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.