CVE-2026-5771 in Loco Translate Plugininfo

Summary

by MITRE • 11/28/2026

The Loco Translate plugin for WordPress is vulnerable to Arbitrary File Write/Overwrite via Path Traversal in all versions up to, and including, 2.8.4. This is due to the normalize() function processing '..' segments in user-supplied paths without verifying that the resolved absolute path remains within the base directory. This makes it possible for authenticated attackers, with Custom+ level access and above, to write translation files to arbitrary locations on the filesystem.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/28/2026

The Loco Translate plugin for WordPress contains a critical security vulnerability affecting all versions up to and including 2.8.4. This flaw is classified as an Arbitrary File Write or Overwrite via Path Traversal. The root cause lies in the improper handling of user-supplied input within the normalize function, which fails to adequately sanitize directory traversal sequences such as double dots before resolving file paths. Consequently, this allows authenticated attackers with Custom level access and above to manipulate filesystem operations beyond intended boundaries.

From a technical perspective, the vulnerability stems from insufficient validation logic when processing path segments. When users supply filenames or directories for translation files, the application processes these inputs through a normalization routine designed to clean up relative references. However, this function does not verify that the resulting absolute path remains confined within the designated base directory where plugin translations are stored. By injecting sequences like .. into the input string, an attacker can traverse upward in the directory hierarchy and specify target locations outside of the allowed scope. This lack of boundary enforcement enables direct interaction with arbitrary files on the server's filesystem.

The operational impact of this vulnerability is severe due to its potential for remote code execution or system compromise. An authenticated attacker who has obtained Custom level access, which typically requires a moderate degree of privilege within the WordPress environment, can write malicious content into critical configuration files, theme templates, or other executable scripts located in accessible directories. If an attacker successfully overwrites a PHP file with injected payload code, they may achieve arbitrary command execution on the underlying server. This effectively bypasses standard authentication controls and grants full control over the web application infrastructure, leading to data exfiltration, defacement, or further lateral movement within the network.

This vulnerability aligns closely with CWE-22: Improper Limitation of a Pathname to a Restricted Directory, which describes flaws where software does not properly validate input against expected directory constraints. Additionally, it relates to CWE-434: Unrestricted Upload of File with Dangerous Type if the written file is executable, and CWE-94: Code Injection via path manipulation techniques. In terms of offensive security frameworks, this behavior corresponds to ATT&CK technique T1059 Command and Scripting Interpreter through indirect means, as well as T1203 Exploitation for Client Execution when targeting browser-based interfaces that facilitate the upload process.

Mitigation strategies should focus on immediate patching and enhanced input validation practices. Administrators must upgrade Loco Translate to version 2.8.5 or later where this path traversal issue has been resolved by implementing strict directory confinement checks during file operations. Developers reviewing similar codebases should ensure that all user-supplied paths are canonicalized and verified against a whitelist of allowed directories before any filesystem write operation occurs. Implementing principle of least privilege for WordPress roles can also limit the attack surface, ensuring that only trusted administrators have access to translation management features susceptible to such manipulation.

Responsible

Wordfence

Reservation

04/08/2026

Disclosure

11/28/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!