# CVE-2019-10197: Path traversal in samba

> An unauthenticated attacker can escape shared directories to access files outside the share when specific Samba configuration parameters are set.

- **Severity:** Medium 6.5 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 3 Sep 2019
- **Updated:** 4 Aug 2024
- **Also known as:** ALPINE-CVE-2019-10197, DEBIAN-CVE-2019-10197, DSA-4513-1, ECHO-4545-1dc9-faf5, GHSA-v6g6-jxr8-2r44, RHSA-2019:3253, RHSA-2019:4023, openSUSE-SU-2019:2142-1

## What is CVE-2019-10197?

CVE-2019-10197 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 3 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in samba versions 4.9.x up to 4.9.13, samba 4.10.x up to 4.10.8 and samba 4.11.x up to 4.11.0rc3, when certain parameters were set in the samba configuration file. An unauthenticated attacker could use this flaw to escape the shared directory and access the contents of directories outside the share.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

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

It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ctdb` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `libsmbclient` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `libsmbclient-devel` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `libwbclient` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `libwbclient-devel` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-client` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-client-libs` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-common` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-common-libs` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-common-tools` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-dc` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-dc-libs` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-debuginfo` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-devel` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-krb5-printing` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-libs` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-pidl` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-python` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-vfs-glusterfs` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-winbind` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-winbind-clients` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-winbind-krb5-locator` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `samba-winbind-modules` | Red Hat:storage:3.5:samba:el6 | All versions | 0:4.9.8-110.el6rhs |
| `ctdb` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `libsmbclient` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `libsmbclient-devel` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `libwbclient` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `libwbclient-devel` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-client` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-client-libs` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-common` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-common-libs` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-common-tools` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-dc` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-dc-libs` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-debuginfo` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-devel` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |
| `samba-krb5-printing` | Red Hat:storage:3.5:samba:el7 | All versions | 0:4.9.8-109.el7rhgs |

Products: Canonical Ubuntu Linux, Debian Debian Linux, Samba Samba.

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

Apply the vendor's patch.

## Is CVE-2019-10197 being exploited?

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

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2020-11651](https://insights.sbomify.com/CVE-2020-11651/): SaltStack Salt Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2020-7247](https://insights.sbomify.com/CVE-2020-7247/): OpenSMTPD Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2019-16928](https://insights.sbomify.com/CVE-2019-16928/): Exim Out-of-bounds Write (critical 9.8, exploited in the wild)
- [CVE-2018-6789](https://insights.sbomify.com/CVE-2018-6789/): Exim Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2015-2590](https://insights.sbomify.com/CVE-2015-2590/): Oracle Java SE and Java SE Embedded Remote Code Execution (critical 9.8, exploited in the wild)

## Fix prompt for AI coding agents

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

What it is: CVE-2019-10197 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 3 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-10197 in the wild and no public exploit code.

Affected product: Canonical Ubuntu Linux. 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-10197/ (Markdown: https://insights.sbomify.com/CVE-2019-10197/index.md)
```

## Sources

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

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