# CVE-2015-0838: Dulwich Buffer Overflow when handling pack files

Source: https://junglewise.ai/threats/cve-2015-0838-dulwich-buffer-overflow-when-handling-pack-files  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2015-03-31  
License: CC BY 4.0 with a link back

CVE-2015-0838 · Severity: low · CVSS 3.1 · Published 2015-03-31

Buffer overflow in the C implementation of the apply_delta function in _pack.c in Dulwich before 0.9.9 allows remote attackers to execute arbitrary code via a crafted pack file.

Technologies: [dulwich (PyPI)](https://junglewise.ai/threats/technologies/dulwich). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2015-0838 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2015-0838 being exploited in the wild.

**How severe is CVE-2015-0838?** Low severity, with a CVSS score of 3.1, published 31 March 2015.

**Which products and versions are affected?** dulwich (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.9.

**Is there a fix for CVE-2015-0838?** Yes. dulwich (PyPI): upgrade to 0.9.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2015-0838?** Check whether you run dulwich (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- dulwich (PyPI): upgrade to 0.9.9 or later

  ```sh
  pip install "dulwich>=0.9.9"
  ```


## Affected products

- dulwich (PyPI) ECOSYSTEM:introduced=0,fixed=0.9.9

## Identifiers

- CVE-2015-0838
- GHSA-vjjf-3rvg-gv3v
- PYSEC-2015-35

## Related threats

- [Dulwich arbitrary file write on Windows via unvalidated drive letters](https://junglewise.ai/threats/dulwich-arbitrary-file-write-rce-on-windows-via-unvalidated-drive-fc90311d)
- [Dulwich infinite loop denial of service in packfile object resolution](https://junglewise.ai/threats/dulwich-infinite-loop-denial-of-service-dos-in-packfile-object-d71acec7)
- [Dulwich symlink write-through in checkout via os.open](https://junglewise.ai/threats/dulwich-symlink-write-through-in-checkout-paths-via-raw-os-open-7e9ebad6)
- [Dulwich symlink directory traversal in filter-branch index_filter](https://junglewise.ai/threats/dulwich-symlink-directory-traversal-in-filter-branch-index-filter-via-c34daf58)
- [Dulwich symlink directory traversal in stash pop](https://junglewise.ai/threats/dulwich-symlink-directory-traversal-in-stash-pop-allows-arbitrary-file-12378d39)
