# CVE-2024-7135: Tainacan <= 0.21.7 - Missing Authorization to Authenticated (Subscriber+) Arbitrary File Read

> Authenticated subscribers can read arbitrary server files due to missing authorization checks and directory traversal in the Tainacan WordPress plugin.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 31 Jul 2024
- **Updated:** 8 Apr 2026
- **Also known as:** GHSA-8v62-x5cp-8hx4

## What is CVE-2024-7135?

CVE-2024-7135 is a medium-severity missing authorization vulnerability in Tainacan, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

The Tainacan plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the 'get_file' function in all versions up to, and including, 0.21.7. The function is also vulnerable to directory traversal. This makes it possible for authenticated attackers, with Subscriber-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information.

Weakness: CWE-862 (Missing Authorization)

## Which versions are affected by CVE-2024-7135?

It affects 1 product.


Products: Tainacan Tainacan.

## How do I fix CVE-2024-7135?

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

## Is CVE-2024-7135 being exploited?

There is no known exploitation of CVE-2024-7135 in the wild and no public exploit code.

Public exploit code:

- Tainacan <= 0.21.7 - Missing Authorization to Authenticated (Subscriber+) Arbitrary File Read (github_poc): https://github.com/RandomRobbieBF/CVE-2024-7135
- https://github.com/Nxploited/CVE-2024-7135 (github_poc): https://github.com/Nxploited/CVE-2024-7135

## Other vulnerabilities in Tainacan

- [CVE-2024-48040](https://insights.sbomify.com/CVE-2024-48040/): WordPress Tainacan plugin <= 0.21.8 - SQL Injection vulnerability (high 8.5)
- [CVE-2024-34794](https://insights.sbomify.com/CVE-2024-34794/): WordPress Tainacan plugin <= 0.21.3 - Cross Site Scripting (XSS) vulnerability (high 7.1)
- [CVE-2023-47848](https://insights.sbomify.com/CVE-2023-47848/): WordPress Tainacan Plugin <= 0.20.4 is vulnerable to Cross Site Scripting (XSS) (high 7.1)
- [CVE-2024-13236](https://insights.sbomify.com/CVE-2024-13236/): Tainacan <= 0.21.12 - Authenticated (Subscriber+) SQL Injection (medium 6.5)
- [CVE-2024-34795](https://insights.sbomify.com/CVE-2024-34795/): WordPress Tainacan plugin <= 0.21.3 - Cross Site Scripting (XSS) vulnerability (medium 6.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-7135 and fix it if it is affected.

What it is: CVE-2024-7135 is a medium-severity missing authorization vulnerability in Tainacan, published on 31 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-7135 in the wild and no public exploit code.

Affected product: Tainacan. 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-2024-7135/ (Markdown: https://insights.sbomify.com/CVE-2024-7135/index.md)
```

## Sources

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

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