CVE-2015-0838: Buffer Overflow in Dulwich

dulwich Updated 02 Oct 2025

Summary

31/03/2015
Yes i
Critical
9.8

CVE-2015-0838: 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. Affects dulwich versions < 0.9.9. Fixed in 0.9.9. How to fix ↓

Also tracked for

The same CVE-2015-0838 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Dulwich is a Python library that provides an interface to interact with Git repositories. It allows users to perform various Git operations programmatically. The library is widely used in Python projects that require Git functionality. However, versions of Dulwich prior to 0.9.9 are vulnerable to a buffer overflow.

Vulnerability Detail

The vulnerability, identified as CVE-2015-0838, is a buffer overflow in the C implementation of the apply_delta function in _pack.c in Dulwich. This vulnerability can be exploited by remote attackers through a crafted pack file. By exploiting this vulnerability, an attacker can execute arbitrary code on the target system. The buffer overflow occurs due to improper input validation and can lead to a variety of security issues, including remote code execution.

How To Fix

Latest published version: 1.2.19 as of 23 Oct 2026

pip install --upgrade "dulwich==1.2.19"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.9.9

This is the first release that contains the fix.

pip install --upgrade "dulwich==0.9.9"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, Dulwich versions prior to 0.9.9 are vulnerable to a buffer overflow issue. This vulnerability can be exploited by remote attackers to execute arbitrary code on the target system. To mitigate the risk, it is recommended to update Dulwich to the latest version. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for dulwich →

Share this vulnerability

FAQ

Dulwich is a Python library that provides an interface to interact with Git repositories. It allows users to perform various Git operations programmatically.

The vulnerability allows remote attackers to execute arbitrary code on the target system by exploiting a buffer overflow in Dulwich.

To fix this vulnerability, update Dulwich to version 0.9.9 or later by running 'pip install --upgrade dulwich'.

No specific workarounds have been provided for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for dulwich.

How To Fix

Latest published version: 1.2.19 as of 23 Oct 2026

pip install --upgrade "dulwich==1.2.19"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.9.9

This is the first release that contains the fix.

pip install --upgrade "dulwich==0.9.9"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback