# CVE-2016-9939: Crypto++ denial of service in ASN.1 BER decoding

Source: https://junglewise.ai/threats/cve-2016-9939-crypto-denial-of-service-in-asn-1-ber-decoding  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-01-30. Updated: 2026-05-14  
License: CC BY 4.0 with a link back

CVE-2016-9939 · Severity: high · CVSS 7.5 · Published 2017-01-30

Crypto++ is a widely used software library that provides cryptographic functions for C++ applications. A flaw in how it processes certain data formats (ASN.1 BER) allows an attacker to send a specially crafted message that causes the library to perform excessive memory operations. This results in a denial-of-service condition, making the affected application slow or unresponsive.

Technologies: [Debian Linux](https://junglewise.ai/threats/technologies/debian). Vendors: [Debian](https://junglewise.ai/threats/vendors/debian).

## Quick answers

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

**How severe is CVE-2016-9939?** High severity, with a CVSS score of 7.5, published 30 January 2017.

**Which products and versions are affected?** Crypto++ Project Crypto++ 5.6.4.

**Is there a fix for CVE-2016-9939?** A patch was published on 2016-12-26: Debian released security update DSA-3748-1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2016-9939 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2016-9939?** Check whether you run Debian Linux. 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.

## Technical details

A vulnerability exists in the ASN.1 BER decoding routine of Crypto++ 5.6.4. The library allocates memory based on the length field of an ASN.1 object before verifying if sufficient content octets are present. When the decoding fails due to missing content, the library proceeds to zero-fill the entire allocated memory block as a security measure. An attacker can exploit this by providing a maliciously large length field, forcing the library to spend significant CPU time zeroing a large, unused memory block, leading to a denial-of-service (DoS). The issue was identified using the 'honggfuzz' fuzzer and affects several BERDecode functions.

## Affected products

- Crypto++ Project Crypto++ 5.6.4

## Timeline

- 2016-12-12: disclosed: Public discussion on oss-security mailing list
- 2016-12-26: patched: Debian released security update DSA-3748-1
- 2017-01-30: advisory: NVD publication date

## References

- [http://www.debian.org/security/2016/dsa-3748](http://www.debian.org/security/2016/dsa-3748)
- [http://www.openwall.com/lists/oss-security/2016/12/12/7](http://www.openwall.com/lists/oss-security/2016/12/12/7)
- [http://www.securityfocus.com/bid/94854](http://www.securityfocus.com/bid/94854)
- [https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7IL5A6465IEPW5GAWGXB2ENJPFYVWTJM/](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7IL5A6465IEPW5GAWGXB2ENJPFYVWTJM/)

## Related threats

- [libpng use-after-free in chunk setter functions](https://junglewise.ai/threats/cve-2026-34757-libpng-use-after-free-in-chunk-setter-functions)
- [firewalld incorrect authorization in D-Bus setters](https://junglewise.ai/threats/cve-2026-4948-firewalld-incorrect-authorization-in-d-bus-setters)
- [libtiff signed integer overflow in putcontig8bitYCbCr44tile](https://junglewise.ai/threats/cve-2026-4775-libtiff-signed-integer-overflow-in-putcontig8bitycbcr44tile)
- [An incomplete fix for allows an out-of-bounds read in gst_wavparse_adtl_chunk() function. The patch added a size validation c](https://junglewise.ai/threats/cve-2026-1940-an-incomplete-fix-for-allows-an-out-of-bounds-read-in-gst-wavparse)
- [OpenSSH GSSAPI uninitialized variable use in Linux distributions](https://junglewise.ai/threats/cve-2026-3497-openssh-gssapi-uninitialized-variable-use-in-linux-distributions)
