# CVE-2021-24721: Loco Translate < 2.5.4 - Authenticated PHP Code Injection

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-08T17:35:14.000Z
- Modified: 2026-06-17T03:40:47.700Z
- Weaknesses: CWE-94
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- Unknown Loco Translate: from 2.5.4 before 2.5.4
- loco_translate_project loco_translate: before 2.5.4

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/bc7d4774-fce8-4b0b-8015-8ef4c5b02d38> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24721](https://www.cve.org/CVERecord?id=CVE-2021-24721), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24721](https://nvd.nist.gov/vuln/detail/CVE-2021-24721), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24721 · Whole record: https://cve.day/CVE-2021-24721.json · Rebuilt by cve.day 2026-11-25T22:58:05.425Z
