CVE-2016-9939
published 2017-01-30CVE-2016-9939: Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length…
PriorityP337high7.5CVSS 3.0
AVNACLPRNUINSUCNINAH
EPSS
4.20%
90.0th percentile
Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length field of the ASN.1 object. If there is not enough content octets in the ASN.1 object, then the function will fail and the memory block will be zeroed even if its unused. There is a noticeable delay during the wipe for a large allocation.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cryptopp | crypto | — | — |
| debian | debian_linux | — | — |
| debian | libcrypto | < libcrypto++ 5.6.4-5 (bookworm) | libcrypto++ 5.6.4-5 (bookworm) |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-x7wj-9rr2-gfcg: Crypto++ (aka cryptopp and libcrypto++) 5
ghsa_unreviewed·2022-05-14
CVE-2016-9939 [HIGH] CWE-20 GHSA-x7wj-9rr2-gfcg: Crypto++ (aka cryptopp and libcrypto++) 5
Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length field of the ASN.1 object. If there is not enough content octets in the ASN.1 object, then the function will fail and the memory block will be zeroed even if its unused. There is a noticeable delay during the wipe for a large allocation.
OSV
CVE-2016-9939: Crypto++ (aka cryptopp and libcrypto++) 5
osv·2017-01-30·CVSS 7.5
CVE-2016-9939 [HIGH] CVE-2016-9939: Crypto++ (aka cryptopp and libcrypto++) 5
Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length field of the ASN.1 object. If there is not enough content octets in the ASN.1 object, then the function will fail and the memory block will be zeroed even if its unused. There is a noticeable delay during the wipe for a large allocation.
Debian
CVE-2016-9939: libcrypto++ - Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER d...
vendor_debian·2016·CVSS 7.5
CVE-2016-9939 [HIGH] CVE-2016-9939: libcrypto++ - Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER d...
Crypto++ (aka cryptopp and libcrypto++) 5.6.4 contained a bug in its ASN.1 BER decoding routine. The library will allocate a memory block based on the length field of the ASN.1 object. If there is not enough content octets in the ASN.1 object, then the function will fail and the memory block will be zeroed even if its unused. There is a noticeable delay during the wipe for a large allocation.
Scope: local
bookworm: resolved (fixed in 5.6.4-5)
bullseye: resolved (fixed in 5.6.4-5)
forky: resolved (fixed in 5.6.4-5)
sid: resolved (fixed in 5.6.4-5)
trixie: resolved (fixed in 5.6.4-5)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [epel-all]
bugzilla·2016-12-13·CVSS 7.5
CVE-2016-9939 [HIGH] CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [epel-all]
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versio
Bugzilla
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing
bugzilla·2016-12-13·CVSS 7.5
CVE-2016-9939 [HIGH] CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing
When Crypto++ library parses an ASN.1 data value, the library allocates for the content octets based on the length octets. Later, if there's too few or too little content octets, the library throws a BERDecodeErr exception. The memory for the content octets will be zeroized (even if unused), which could take a long time on a large allocation.
Upstream bug:
https://github.com/weidai11/cryptopp/issues/346
References:
https://groups.google.com/forum/#!msg/cryptopp-users/fEQ8jWg_K8g/qOLHGIDICwAJ
CVE assignment:
http://seclists.org/oss-sec/2016/q4/660
Discussion:
Created cryptopp tracking bugs for this issue:
Affects: fedora-all [bug 1404145]
Affects: epel-all [bug 1404146]
---
This CVE Bugzilla entry is for communi
Bugzilla
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [fedora-all]
bugzilla·2016-12-13·CVSS 7.5
CVE-2016-9939 [HIGH] CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [fedora-all]
CVE-2016-9939 cryptopp: DoS in ASN.1 parser due to octet processing [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
http://www.debian.org/security/2016/dsa-3748http://www.openwall.com/lists/oss-security/2016/12/12/7http://www.securityfocus.com/bid/94854https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7IL5A6465IEPW5GAWGXB2ENJPFYVWTJM/http://www.debian.org/security/2016/dsa-3748http://www.openwall.com/lists/oss-security/2016/12/12/7http://www.securityfocus.com/bid/94854https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7IL5A6465IEPW5GAWGXB2ENJPFYVWTJM/
2017-01-30
Published