# CVE-2020-10257: Code injection in n/a

> Unauthenticated attackers can execute arbitrary PHP code via the ThemeREX Addons plugin due to missing access control and unsafe parameter handling.

- **Severity:** Critical 9.8 (`CVSS:3.0/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 9 Mar 2020
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-x679-h3r8-6399

## What is CVE-2020-10257?

CVE-2020-10257 is a critical code injection vulnerability in n/a, published on 9 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The ThemeREX Addons plugin before 2020-03-09 for WordPress lacks access control on the /trx_addons/v2/get/sc_layout REST API endpoint, allowing for PHP functions to be executed by any users, because includes/plugin.rest-api.php calls trx_addons_rest_get_sc_layout with an unsafe sc parameter.

Weakness: CWE-94 (Improper Control of Generation of Code), CWE-862 (Missing Authorization)

## Which versions are affected by CVE-2020-10257?

It affects 63 products.


Products: Themerex Addons, Themerex Aldo-Gutenberg Wordpress Blog Theme, Themerex Amuli, Themerex Blabber, Themerex Bonkozoo Zoo, Themerex Briny-Diving Wordpress Theme, Themerex Bugster-Pests Control, Themerex Buzz Stone-Magazine \& Blog, Themerex Chainpress, Themerex Chit Club-Board Games, Themerex Coinpress-Cryptocurrency Magazine \& Blog Wordpress Theme, Themerex Corredo Sport Event, Themerex Dronex-Aerial Photography Services, Themerex Especio-Food Gutenberg Theme, Themerex Fc United-Football, Themerex Gloss Blog, Themerex Gridiron, Themerex Hallelujah-Church, Themerex Heaven 11-Multiskin Property Theme, Themerex Helion-Agency \&Portfolio and 43 more.

## How do I fix CVE-2020-10257?

No fix has been published for CVE-2020-10257 yet. Limit exposure of the affected software until one is available.

## Is CVE-2020-10257 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-10257 exists.

Public exploit code:

- CVE-2020-10257 exploit script (github_poc): https://github.com/Darkcast/CVE-2020-10257
- ThemeREX Addons - Remote Code Execution (nuclei): http/cves/2020/CVE-2020-10257.yaml

## Other vulnerabilities in n/a

- [CVE-2024-13448](https://insights.sbomify.com/CVE-2024-13448/): ThemeREX Addons <= 2.32.3 - Unauthenticated Arbitrary File Upload in trx_addons_uploads_save_data (critical 9.8)
- [CVE-2025-0682](https://insights.sbomify.com/CVE-2025-0682/): ThemeREX Addons <= 2.33.0 - Authenticated (Contributor+) Local File Inclusion via Shortcode (high 8.8)
- [CVE-2025-6997](https://insights.sbomify.com/CVE-2025-6997/): Cross-site scripting in ThemeREX Addons (medium 6.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-10257 and fix it if it is affected.

What it is: CVE-2020-10257 is a critical code injection vulnerability in n/a, published on 9 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-10257 exists.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-10257/ (Markdown: https://insights.sbomify.com/CVE-2020-10257/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-10257
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-10257
- OSV: https://osv.dev/vulnerability/CVE-2020-10257

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-10257/
Summaries are generated and may contain mistakes; the official description above is the record.
