Back to the CVE list
CVE-2025-55013

Assemblyline 4 service client vulnerable to Arbitrary Write through path traversal in Client code

CVSS score

4.2

EPSS probability

%0.6

Risk score

0.0

Published

1 y ago

Official patch verified

Etkilenen ürün ve sürüm için yayımlanan güvenlik güncellemesini uygulayın.

Impact on My Inventory

Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.

Checking session…

Vulnerability description

DayBreach CVE AI Research

CVE-2025-55013 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.

**Path-Traversal -> Arbitrary File Write in Assemblyline Service Client** **IMPORTANT**: This vulnerability is valid if you decide to use the assemblyline-service-client outside of the normal practice to using Assemblyline in a production environment. In practice, this code should always be executed within a containerized environment such as [assemblyline-v4-service](https://github.com/CybercentreCanada/assemblyline-v4-service) which ensures filesystem-level permissions of what the running user is allowed to access. Furthermore, there is fewer chances for a MiTM compromise when deployed properly in a Docker or Kubernetes deployment where the platform will assign the correct network policies to secure connections between containers instead of relying on the user to set this up manually. See https://github.com/CybercentreCanada/assemblyline/issues/382 for further discussion. --- ## 1. Summary The Assemblyline 4 **service client** (`task_handler.py`) accepts a SHA-256 value returned by the service **server** and uses it directly as a local file name. > No validation / sanitisation is performed. A **malicious or compromised server** (or any MITM that can speak to client) can return a path-traversal payload such as `../../../etc/cron.d/evil` and force the client to write the downloaded bytes to an arbitrary location on disk. --- ## 2. Affected Versions | Item | Value | |---|---| | **Component** | `assemblyline-service-client` | | **Repository** | [CybercentreCanada/assemblyline-service-client](https://github.com/CybercentreCanada/assemblyline-service-client) | | **Affected** | **All releases up to master branch.** | --- ## 3. CVSS 3.1 Vector & Score ``` CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L ``` --- ## 4. Technical Details | Field | Content | |---|---| | **Location** | `assemblyline_service_client/task_handler.py`, inside `download_file()` | | **Vulnerable Line** | `file_path = os.path.join(self.tasking_dir, sha256)` | | **Root Cause** | The `sha256` string is taken directly from the service-server JSON response and used as a file name without any validation or sanitisation. | | **Exploit Flow** | 1. Attacker (service server) returns HTTP 200 for `GET /api/v1/file/../../../etc/cron.d/evil`.<br>2. Client writes the response body to `/etc/cron.d/evil`.<br>3. Achieves arbitrary file write (code execution if file is executable). | --- ## 5. Impact - **Integrity** – Overwrite any file writable by the service UID (often root). - **Availability** – Corrupt critical files or exhaust disk space. - **Code Execution** – Drop cron jobs, systemd units, or overwrite binaries. --- ## 6. Mitigation / Fix ```python import re _SHA256_RE = re.compile(r'^[0-9a-fA-F]{64}\Z') def download_file(self, sha256: str, sid: str) -> Optional[str]: if not _SHA256_RE.fullmatch(sha256): self.log.error(f"[{sid}] Invalid SHA256: {sha256}") self.status = STATUSES.ERROR_FOUND return None # or your preferred way to check if a string is a shasum. ``` ---

IMPACT: Affected Products and Software

Affected Products

The following products are affected by CVE-2025-55013 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.

IDVENDORPRODUCTACTION
1pypiassemblyline-service-client View
2pypiassemblyline-service-client View
3pypiassemblyline-service-client View
Total affected vendors: 1|Products: 3

RED HAT CSAF/VEX: Product Impact Check

Red Hat has not yet published a CSAF/VEX impact record for this CVE. This does not mean “not affected”.

SCORING: CVSS from Multiple Sources

CVSS Scores

The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.

SCOREVERSIONSEVERITYVECTORSOURCE
4.2CVSS 3.x—Vector not publishedGitHub Advisory
0.0CVSS 4.0—Vector not publishedGitHub Advisory

Patch and Remediation Guide

Solution & Remediation Advisory

Patch verified

3 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

gitlabpypi/assemblyline-service-client4.6.1-dev.138

GitLab Advisory düzeltilmiş sürüm: 4.6.1-dev.138

gitlab

Upgrade to version 4.6.1-dev.138 or above.

osvassemblyline-service-client4.6.0.stable11

OSV düzeltilmiş sürüm: 4.6.0.stable11

osvassemblyline-service-client4.6.1.dev138

OSV düzeltilmiş sürüm: 4.6.1.dev138

canonical

Upgrade to version 4.6.1-dev.138 or above.

Confirm the affected product and version against the source evidence above.
Restrict access to internet-facing services and apply network segmentation.
Apply the official update named in the evidence only to the matching product and version.
Monitor server logs and network endpoints for signs of anomalous execution.

Public exploit and active exploitation status

Verified exploit intelligence

No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.

Weakness Classification and Attack Patterns (CWE & CAPEC)

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-55013 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-55013 weaknesses.

Attack Vector and Accessibility

ExposureBitişik ağ
PermissionsGerekmiyor
UserGerekmiyor

Official Sources and Advisories

CVSS Vector Radar Chart

4.2 / 10
Attack VectorAdjacentComplexityHighPrivilegesNoneUser Interact.NoneConfidentialityHighIntegrityNoneAvailabilityLow

Vulnerability Scoring Details

CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Attack VectorAdjacent network
Attack ComplexityHigh
Privileges RequiredNone required
User InteractionNone required
Confidentiality (Gizlilik)High
Integrity (Bütünlük)None
Availability (Erişilebilirlik)Low

Yama doğrulandı

3 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

Follow the vendor

P
pypi logo
pypi

Weakness Type (CWE & CAPEC)

Similar Vulnerabilities

Get this vulnerability through the API

Affected products, version ranges, exploitation status and patch information in a single request, with a free key.

curl -H "x-api-key: $DAYBREACH_API_KEY" \
  "https://api.daybreach.dev/api/v1/intel/cves/CVE-2025-55013"