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

CVE-2026-61525: Zammad Path Traversal Vulnerability

CVE-2026-61525 is a path traversal flaw in Zammad helpdesk system that allows authenticated attackers to delete arbitrary files on the server. This post explains its technical details, affected versions, impact, and mitigation steps.

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-61525 Overview

CVE-2026-61525 is a path traversal vulnerability [CWE-22] in Zammad, an open source web-based helpdesk and customer support platform. The flaw affects session management for websocket and long-polling connections in Zammad versions 7.0.2 and 7.1.0. The application insufficiently validates client-supplied session identifiers before using them to construct internal file paths. When the default file-based session store is active, an authenticated attacker can craft a session identifier that references locations outside the intended storage directory. Exploitation deletes arbitrary files and directories on the server with the privileges of the Zammad process. The vulnerability requires only a low-privilege authenticated account and a single crafted request.

Critical Impact

An authenticated low-privilege user can delete arbitrary files and directories on the Zammad host, enabling destruction of application data, denial of service, and potential tampering with configuration or audit artifacts.

Affected Products

  • Zammad 7.0.2
  • Zammad 7.1.0
  • Zammad instances using the default file-based session store (Redis-based session store deployments are not affected)

Discovery Timeline

  • 2026-09-25 - CVE-2026-61525 published to the National Vulnerability Database (NVD)
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-61525

Vulnerability Analysis

Zammad maintains per-client session state for websocket and long-polling transports using a client_id parameter supplied by the client. In the vulnerable code path, client_id is passed to Sessions module methods that construct filesystem paths under the session storage directory. Because the identifier is not validated against an allow-list of safe characters, an attacker can supply traversal sequences such as ../ to escape the storage directory.

When the long-polling controller receives a request, the raw client_id is forwarded to Sessions.get and related destructive helpers. Session cleanup operations that remove stale session files then operate on an attacker-controlled path. The result is deletion of files and directories outside the session store, including application code, configuration files, logs, or data on mounted volumes accessible to the Zammad service account.

Root Cause

The root cause is missing input validation on the client_id parameter before it is used in path construction. No canonicalization or character allow-listing was applied prior to the fix. The file-based session store trusts the identifier as a safe filename component, which violates the secure handling model for externally-supplied identifiers used in filesystem operations.

Attack Vector

The attack is remote and network-reachable. An attacker authenticates with any valid Zammad account, including low-privilege agent or customer accounts. The attacker then issues a single crafted request to the long-polling or websocket endpoint containing a client_id value with path traversal sequences. The Zammad backend processes the identifier and deletes the targeted path. Instances configured to use the Redis-based session store do not reach the vulnerable filesystem code and are not affected.

ruby
# Patch: app/controllers/long_polling_controller.rb
    return if !params[:client_id]

    cid = params[:client_id].to_s
+    return if !Sessions.valid_client_id?(cid)
+
    session_data = Sessions.get(cid)
    return if !session_data

Source: GitHub Zammad Commit cf34257

ruby
# Patch: lib/sessions.rb
  def self.create(client_id, session, meta)
+    return if !valid_client_id?(client_id)
+
    # collect session data
    meta[:last_ping] = Time.now.utc.to_i
    data = {

Source: GitHub Zammad Commit f78ef24

The fix introduces a Sessions.valid_client_id? helper that rejects any identifier containing characters outside a strict allow-list, preventing traversal sequences from reaching filesystem operations.

Detection Methods for CVE-2026-61525

Indicators of Compromise

  • Requests to long-polling or websocket endpoints containing client_id parameter values with ../, encoded traversal sequences (%2e%2e%2f), absolute paths, or null bytes.
  • Unexpected deletion of files or directories under the Zammad installation path, tmp/, configuration directories, or mounted storage volumes.
  • Zammad application errors referencing missing files, broken session state, or ENOENT conditions appearing after a suspicious authenticated request.
  • Successful authentication from low-privilege accounts immediately followed by anomalous long-polling requests.

Detection Strategies

  • Inspect HTTP access logs and reverse proxy logs for client_id query or body parameter values that do not match the expected UUID or alphanumeric pattern used by legitimate Zammad clients.
  • Enable filesystem auditing (auditd on Linux) on the Zammad data directory and parent paths to record unlink and rmdir events attributable to the Zammad service account.
  • Correlate authentication events with subsequent websocket or long-polling activity to flag sessions that issue malformed session identifiers.

Monitoring Recommendations

  • Forward Zammad application logs, web server logs, and OS-level file deletion telemetry to a centralized analytics platform for retention and correlation.
  • Alert on any deletion of files under Zammad application directories by the Zammad runtime user outside of scheduled maintenance windows.
  • Monitor for client_id values exceeding expected length or containing path separator characters.

How to Mitigate CVE-2026-61525

Immediate Actions Required

  • Upgrade Zammad to version 7.0.3 or 7.1.1, which include the validation fix for client identifiers.
  • If immediate patching is not possible, switch the session store from file-based to Redis-based, which is not affected by this vulnerability.
  • Audit the Zammad host for unexpected missing files or directories and restore from backup if deletion is detected.
  • Review authentication logs and revoke credentials for any accounts observed issuing malformed client_id values.

Patch Information

The vendor fix is available in Zammad 7.0.3 and 7.1.1. The patches introduce Sessions.valid_client_id? validation in lib/sessions.rb and apply the check in app/controllers/long_polling_controller.rb and Sessions.create. Full details are published in GitHub Security Advisory GHSA-xp9w-hhf3-vfxx.

Workarounds

  • Reconfigure Zammad to use the Redis-based session store, which does not perform the vulnerable filesystem path construction.
  • Restrict access to the Zammad web interface using network controls or VPN until the patched version is deployed.
  • Place a reverse proxy or web application firewall rule in front of Zammad that rejects requests whose client_id parameter contains characters outside [A-Za-z0-9_-].
bash
# Example reverse proxy filter (nginx) rejecting malformed client_id values
location / {
    if ($arg_client_id ~* "[^A-Za-z0-9_-]") {
        return 400;
    }
    proxy_pass http://zammad_backend;
}

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.