# CVE-2019-3689: nfs-utils: root-owned files stored in insecure /var/lib/nfs directory

> A local attacker compromising statd can trick root processes into overwriting arbitrary files due to insecure directory permissions in nfs-utils.

- **Severity:** Medium 5.1 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`)
- **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:** 19 Sep 2019
- **Updated:** 17 Sep 2024
- **Also known as:** DEBIAN-CVE-2019-3689, DLA-1965-1, GHSA-qh2q-m44h-cfm8, SUSE-SU-2019:2771-1, SUSE-SU-2019:2776-1, SUSE-SU-2019:2781-1, SUSE-SU-2019:2782-1, UBUNTU-CVE-2019-3689, USN-4400-1, openSUSE-SU-2019:2408-1, openSUSE-SU-2019:2435-1, openSUSE-SU-2024:11090-1, openSUSE-SU-2024:11307-1

## What is CVE-2019-3689?

CVE-2019-3689 is a medium-severity vulnerability in SUSE Linux Enterprise Server 12, published on 19 Sep 2019. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

The nfs-utils package in SUSE Linux Enterprise Server 12 before and including version 1.3.0-34.18.1 and in SUSE Linux Enterprise Server 15 before and including version 2.1.1-6.10.2 the directory /var/lib/nfs is owned by statd:nogroup. This directory contains files owned and managed by root. If statd is compromised, it can therefore trick processes running with root privileges into creating/overwriting files anywhere on the system.

Weakness: CWE-276 (Incorrect Default Permissions)

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

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `nfs-utils` | SUSE:Enterprise Storage 4 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Enterprise Storage 5 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:HPE Helion OpenStack 8 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Desktop 12 SP4 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Module for Basesystem 15 | All versions | 2.1.1-6.14.1 |
| `nfs-utils` | SUSE:Linux Enterprise Module for Basesystem 15 SP1 | All versions | 2.1.1-10.4.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP1-LTSS | All versions | 1.3.0-41.3.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP2-LTSS | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP3-BCL | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP3-LTSS | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP4 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | All versions | 1.3.0-41.3.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:OpenStack Cloud 7 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:OpenStack Cloud 8 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | SUSE:OpenStack Cloud Crowbar 8 | All versions | 1.3.0-34.22.1 |
| `nfs-utils` | openSUSE:Leap 15.0 | All versions | 2.1.1-lp150.4.10.1 |
| `nfs-utils` | openSUSE:Leap 15.1 | All versions | 2.1.1-lp151.7.3.1 |
| `nfsidmap` | openSUSE:Tumbleweed | All versions | 1.0-26.2 |
| `rpmlint` | openSUSE:Tumbleweed | All versions | 2.1+git20210924.ad0cf53-1.1 |

Products: Linux-Nfs Nfs-Utils.

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

Apply the vendor's patch.

## Is CVE-2019-3689 being exploited?

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

## Other vulnerabilities in SUSE Linux Enterprise Server 12

- [CVE-2003-0252](https://insights.sbomify.com/CVE-2003-0252/): Memory corruption in n/a (critical 9.8)
- [CVE-2011-2500](https://insights.sbomify.com/CVE-2011-2500/): Auth bypass in n/a (high 7.5)
- [CVE-2025-12801](https://insights.sbomify.com/CVE-2025-12801/): Nfs-utils: rpc.mountd in the nfs-utils privilege escalation (medium 6.5)
- [CVE-2011-1749](https://insights.sbomify.com/CVE-2011-1749/): Denial of service in n/a (low 3.3)
- [CVE-2013-1923](https://insights.sbomify.com/CVE-2013-1923/): Information disclosure in n/a (low 3.2)

## Fix prompt for AI coding agents

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

What it is: CVE-2019-3689 is a medium-severity vulnerability in SUSE Linux Enterprise Server 12, published on 19 Sep 2019. 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-3689 in the wild and no public exploit code.

Affected product: SUSE Linux Enterprise Server 12. 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-3689/ (Markdown: https://insights.sbomify.com/CVE-2019-3689/index.md)
```

## Sources

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

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