CVE-2017-16228
python-dulwich: Setting SSH arguments from untrusted URLs allows code execution
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
Description
Dulwich before 0.18.5, when an SSH subprocess is used, allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-12976, CVE-2017-1000116, and CVE-2017-1000117.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | dulwich | 0.18.5 |
| debian 11 | dulwich | 0.18.5-1 |
| debian 12 | dulwich | 0.18.5-1 |
| debian 13 | dulwich | 0.18.5-1 |
| debian 14 | dulwich | 0.18.5-1 |
| debian 7 | dulwich | no fix listed |
| debian 8 | dulwich | no fix listed |
| debian 9 | dulwich | no fix listed |
| echo | dulwich | 0.18.5-1 |
References
- https://access.redhat.com/security/cve/CVE-2017-16228
- https://github.com/jelmer/dulwich
- https://github.com/jelmer/dulwich/commit/7116a0cbbda571f7dac863f4b1c00b6e16d6d8d6
- https://github.com/pypa/advisory-database/tree/main/vulns/dulwich/PYSEC-2017-12.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2017-16228
- https://tracker.debian.org/news/882440
- https://web.archive.org/web/20201220231743/https://www.dulwich.io/code/dulwich/commit/7116a0cbbda571f7dac863f4b1c00b6e16d6d8d6
- https://web.archive.org/web/20210128154006/https://www.dulwich.io/code/dulwich