# CVE-2019-3695: pcp: Local privilege escalation from user pcp to root

> A local attacker with pcp user privileges can execute arbitrary code as root by modifying a configuration script, leading to full system compromise.

- **Severity:** High 8.4 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Mar 2020
- **Updated:** 16 Sep 2024
- **Also known as:** GHSA-3g68-p942-4533

## What is CVE-2019-3695?

CVE-2019-3695 is a high-severity code injection vulnerability in SUSE Linux Enterprise High Performance Computing 15-ESPOS, published on 3 Mar 2020. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A Improper Control of Generation of Code vulnerability in the packaging of pcp of SUSE Linux Enterprise High Performance Computing 15-ESPOS, SUSE Linux Enterprise High Performance Computing 15-LTSS, SUSE Linux Enterprise Module for Development Tools 15, SUSE Linux Enterprise Module for Development Tools 15-SP1, SUSE Linux Enterprise Module for Open Buildservice Development Tools 15, SUSE Linux Enterprise Server 15-LTSS, SUSE Linux Enterprise Server for SAP 15, SUSE Linux Enterprise Software Development Kit 12-SP4, SUSE Linux Enterprise Software Development Kit 12-SP5; openSUSE Leap 15.1 allows the user pcp to run code as root by placing it into /var/log/pcp/configs.sh This issue affects: SUSE Linux Enterprise High Performance Computing 15-ESPOS pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise High Performance Computing 15-LTSS pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise Module for Development Tools 15 pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise Module for Development Tools 15-SP1 pcp versions prior to 4.3.1-3.5.3. SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise Server 15-LTSS pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise Server for SAP 15 pcp versions prior to 3.11.9-5.8.1. SUSE Linux Enterprise Software Development Kit 12-SP4 pcp versions prior to 3.11.9-6.14.1. SUSE Linux Enterprise Software Development Kit 12-SP5 pcp versions prior to 3.11.9-6.14.1. openSUSE Leap 15.1 pcp versions prior to 4.3.1-lp151.2.3.1.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2019-3695?

It affects 1 product.


Products: Opensuse Pcp.

## How do I fix CVE-2019-3695?

Apply the vendor's patch.

## Is CVE-2019-3695 being exploited?

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

## Other vulnerabilities in SUSE Linux Enterprise High Performance Computing 15-ESPOS

- [CVE-2019-3696](https://insights.sbomify.com/CVE-2019-3696/): pcp: Local privilege escalation from user pcp to root through migrate_tempdirs (high 8.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-3695 and fix it if it is affected.

What it is: CVE-2019-3695 is a high-severity code injection vulnerability in SUSE Linux Enterprise High Performance Computing 15-ESPOS, published on 3 Mar 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-3695 in the wild and no public exploit code.

Affected product: SUSE Linux Enterprise High Performance Computing 15-ESPOS. 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-2019-3695/ (Markdown: https://insights.sbomify.com/CVE-2019-3695/index.md)
```

## Sources

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

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