Loco Translate <= 2.5.3 - Authenticated PHP Code Injection

Improper Control of Generation of Code ('Code Injection')
CVE CVE-2021-24721
CVSS Medium (6.5)
Publicly Published October 11, 2021
Last Updated January 22, 2024
Researcher Tomi Ashari
Description

The Loco Translate WordPress plugin before 2.5.4 mishandles data inputs which get saved to a file, which can be renamed to an extension ending in .php, resulting in authenticated "translator" users being able to inject PHP code into files ending with .php in web accessible locations.

References

1 affected software package

Software Type Plugin
Software Slug loco-translate (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.5.4
Patched Version
  • 2.5.4
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.