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

> Administrators can exploit the update feature to replace the application binary with a malicious one, leading to remote code execution upon service restart.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 4 Jun 2020
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-jp5w-2f3c-7r7m

## What is CVE-2020-12852?

CVE-2020-12852 is a medium-severity code injection vulnerability in n/a, published on 4 Jun 2020. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

The update feature for Pydio Cells 2.0.4 allows an administrator user to set a custom update URL and the public RSA key used to validate the downloaded update package. The update process involves downloading the updated binary file from a URL indicated in the update server response, validating its checksum and signature with the provided public key and finally replacing the current application binary. To complete the update process, the application’s service or appliance needs to be restarted. An attacker with administrator access can leverage the software update feature to force the application to download a custom binary that will replace current Pydio Cells binary. When the server or service is eventually restarted the attacker will be able to execute code under the privileges of the user running the application. In the Pydio Cells enterprise appliance this is with the privileges of the user named “pydio”.

Weakness: CWE-20 (Improper Input Validation)

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

It affects 1 product.


Products: Pydio Cells.

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

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

## Is CVE-2020-12852 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2023-32749](https://insights.sbomify.com/CVE-2023-32749/): Privilege escalation in n/a (high 8.8)
- [CVE-2019-12901](https://insights.sbomify.com/CVE-2019-12901/): Path traversal in n/a (high 8.8)
- [CVE-2020-12851](https://insights.sbomify.com/CVE-2020-12851/): Path traversal in n/a (high 8.1)
- [CVE-2020-12847](https://insights.sbomify.com/CVE-2020-12847/): Command injection in n/a (high 7.2)
- [CVE-2020-12850](https://insights.sbomify.com/CVE-2020-12850/): The following vulnerability applies only to the Pydio Cells Enterprise OVF version 2.0.4. (high 7.0)

## Fix prompt for AI coding agents

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

What it is: CVE-2020-12852 is a medium-severity code injection vulnerability in n/a, published on 4 Jun 2020. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2020-12852 in the wild and no public exploit code.

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-12852/ (Markdown: https://insights.sbomify.com/CVE-2020-12852/index.md)
```

## Sources

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

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