Path traversal in Zulip Server import exposes readable server files

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-26058?

CVE-2026-26058 is a vulnerability classified as Improper Limitation of a Pathname to a Restricted Directory, affecting zulip (affected versions: >= 1.4.0, < 11.6). This vulnerability is rated Medium, with a CVSS score of 6.1. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Zulip is an open-source team collaboration tool. From version 1.4.0 to before version 11.6,./manage.py import reads arbitrary files from the server filesystem via path traversal in uploads/records.json. A crafted export tarball causes the server to copy any file the zulip user can read into the uploads directory during import. This issue has been patched in version 11.6.

Affected products and scope

  • Zulip Server from vendor Zulip is affected in versions >= 1.4.0, < 11.6 according to the structured affected data.
  • The vendor advisory directly describes a self-hosted Zulip Server 11.5 environment and currently displays Patched versions: None. That display is incomplete and conflicts with the CNA record, patch commit, and Zulip Server 11.6 release, which identify 11.6 as the patched release.
  • The advisory also describes the same pattern in an S3 code path, so cloud deployments should be checked rather than limiting review to local-disk storage.

Technical details

Zulip Server processes attacker-controlled data from uploads/records.json inside an export tarball without adequately validating the path. In zerver/lib/import_realm.py, the import_uploads function joins import_dir, the uploads directory, and record["path"], then copies the source file to a destination under the upload storage. Because record["path"] is taken directly from the archive and .. sequences are not validated, the path can escape the uploads directory and reach files readable by the zulip operating-system account. The attacker-controlled input is uploads/records.json in an export tarball supplied to./manage.py import. The Zulip advisory also identifies a similar pattern in S3 code paths, so some cloud deployments could upload readable server files to S3 during import. The available evidence does not fully establish the authorization model or deployment workflow that determines who can submit an archive and trigger import in each environment.

Exploitability

  • The normalized record characterizes reachability as local, with low attack complexity and required user interaction; it does not establish a direct network attack path.
  • The record marks a public exploit as available, and the Zulip advisory contains a public reproduction of the behavior.
  • The advisory demonstrates the importer running in the context of the zulip operating-system account. That does not by itself prove that a remote user can trigger the import or bypass operational controls in every deployment.
  • The consulted evidence does not name a campaign, victim, or confirmed real-world exploitation. Exploitation in the wild therefore remains unestablished.

Technical impact

The flaw allows an import archive containing a controlled path to make the importer copy files outside the uploads area, limited by the files readable by the zulip account. The primary technical outcome is data disclosure and placement of a file copy into application-managed storage; if the copied file contains secrets or sensitive configuration, the organization may need to rotate credentials and investigate connected systems. In deployments using S3, the advisory states that the same pattern could cause files to be uploaded to S3. The evidence does not show access beyond the zulip account's read permissions, does not establish remote code execution, and does not confirm modification of the original files. Actual impact depends on the service account's readable files, access to uploads or object storage after import, and the deployment workflow that permits an archive to be processed.

Business impact

  • Data confidentiality: Files readable by the zulip account can be copied into the uploads directory, potentially exposing application data, configuration, or secrets if those files become accessible through the storage area.
  • Cloud storage exposure: The Zulip advisory notes that a similar pattern in an S3 code path could upload readable server files to S3, depending on deployment configuration.
  • Operational impact: Unexpected files in uploads or object storage can affect import integrity, complicate incident investigation, and require review of data that may have been copied.
  • The documented behavior primarily reads and copies files. The normalized record characterizes a limited integrity impact, but the evidence does not identify a specific operation that modifies the original files or executes code.

Remediation

  1. Upgrade Zulip Server to 11.6, the release confirmed by the CNA record, patch, and Zulip release information as addressing the issue.
  2. If an upgrade cannot be completed immediately, treat imports of untrusted export tarballs as unsafe and temporarily restrict that workflow as a precaution. The available evidence does not confirm an independent vendor workaround.
  3. Review completed imports, the uploads directory, and the storage backend for unexpected files or sensitive data that may have been copied.
  4. After updating, verify that the patch applies to the deployment's actual release branch and review both local-disk and S3 import paths used by the system. Do not infer the status of parallel branches not covered by the record merely because 11.6 is fixed.

Detection

  1. Inventory Zulip Server installations and verify the installed version, prioritizing systems in the affected range.
  2. Identify deployments that permit./manage.py import, accept export tarballs from untrusted sources, or use the relevant S3 import paths.
  3. Review uploads/records.json in imported archives for unexpected path values or paths that resolve outside the uploads directory after normalization. This is a detection check, not proof that an archive was exploited.
  4. Inspect the uploads directory and storage backend, including S3 where applicable, for files that should not have appeared after import jobs; correlate creation or modification times with import activity.
  5. Review application and audit logs around suspicious imports. The advisory does not define a specific IOC or log event, so the absence of such evidence does not prove safety.
Sources (13)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.