CVE-2016-2180
High · 7.5CVSS
7.5
EPSS
30.0%
Published
Aug 1, 2016
CISA due date
—
Cloudanix analysis
A flaw in older OpenSSL versions lets an attacker crash programs that handle certain timestamp files, causing temporary service outages until the software is updated.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in TS_OBJ_print_bio during mishandled processing of a crafted time-stamp file by the openssl ts command, resulting in application crash.
Why it matters to the business
Potential denial-of-service downtime for services or tools that parse untrusted timestamp responses using vulnerable OpenSSL versions, though the issue is dated and exploitation remains uncommon.
How an attack unfolds
An attacker creates a specially malformed timestamp file and supplies it to the openssl ts command or any application invoking the affected TSP parsing code, triggering the out-of-bounds read and crash.
How to fix it
Upgrade OpenSSL to a build containing commit 0ed26acce328ec16a3aa635f1ca37365e8c7403a or later; rebuild and redeploy all dependent applications after the update.
How to confirm the fix worked
Confirm the installed OpenSSL version or source tree contains commit 0ed26acce328ec16a3aa635f1ca37365e8c7403a; re-run openssl ts against known-malformed test files to verify absence of crash.
Typical attack path
- Generate or obtain a crafted time-stamp file containing invalid ASN.1 structures
- Invoke the openssl ts command or an application that calls TS_OBJ_print_bio on the file
- Trigger the out-of-bounds read causing immediate process termination
How to detect it
Search application and system logs for crashes or segmentation faults originating from crypto/ts/ts_lib.c or the openssl ts binary when processing timestamp inputs; monitor for repeated restarts of processes that use OpenSSL timestamp functions.
What your security team should do
- Identify all systems and containers using OpenSSL <= 1.0.2h and schedule upgrades to the fixed commit
- Scan build pipelines and dependency manifests for openssl/openssl references and enforce the patched version
- Review any custom code or scripts that invoke openssl ts on externally supplied files and add input validation or sandboxing
The record
The TS_OBJ_print_bio function in crypto/ts/ts_lib.c in the X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) implementation in OpenSSL through 1.0.2h allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted time-stamp file that is mishandled by the "openssl ts" command.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.2 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.3 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.4 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.5 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.6 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.7 | openssl | 0 | 1.0.2h-r2 |
| Alpine:v3.8 | openssl | 0 | 1.0.2h-r2 |
| Debian:11 | openssl | 0 | 1.0.2i-1 |
| Debian:12 | openssl | 0 | 1.0.2i-1 |
| Debian:13 | openssl | 0 | 1.0.2i-1 |
| Debian:7 | openssl | 0 | 1.0.1t-1+deb7u1 |
| Debian:8 | openssl | 0 | 1.0.1t-1+deb8u4 |
| Mageia:5 | kmod-vboxadditions | 0 | 5.1.10-1.1.mga5 |
| Mageia:5 | kmod-virtualbox | 0 | 5.1.10-1.1.mga5 |
| Mageia:5 | openssl | 0 | 1.0.2j-1.mga5 |
| Mageia:5 | virtualbox | 0 | 5.1.10-1.1.mga5 |
| Red Hat:enterprise_linux:6::client | openssl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::client | openssl-debuginfo | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::client | openssl-devel | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::client | openssl-perl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::client | openssl-static | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::computenode | openssl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::computenode | openssl-debuginfo | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::computenode | openssl-devel | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::computenode | openssl-perl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::computenode | openssl-static | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::server | openssl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::server | openssl-debuginfo | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::server | openssl-devel | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::server | openssl-perl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::server | openssl-static | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::workstation | openssl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::workstation | openssl-debuginfo | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::workstation | openssl-devel | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::workstation | openssl-perl | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:6::workstation | openssl-static | 0 | 0:1.0.1e-48.el6_8.3 |
| Red Hat:enterprise_linux:7::client | openssl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::client | openssl-debuginfo | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::client | openssl-devel | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::client | openssl-libs | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::client | openssl-perl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::client | openssl-static | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl-debuginfo | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl-devel | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl-libs | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl-perl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::computenode | openssl-static | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl-debuginfo | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl-devel | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl-libs | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl-perl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::server | openssl-static | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl-debuginfo | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl-devel | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl-libs | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl-perl | 0 | 1:1.0.1e-51.el7_2.7 |
| Red Hat:enterprise_linux:7::workstation | openssl-static | 0 | 1:1.0.1e-51.el7_2.7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | openssl | 0 | 1.0.1i-52.1 |
| SUSE:Linux Enterprise Server 11-SECURITY | openssl1 | 0 | 1.0.1g-0.52.1 |
| SUSE:Linux Enterprise Server 12 SP1 | openssl | 0 | 1.0.1i-52.1 |
| SUSE:Linux Enterprise Server 12-LTSS | openssl | 0 | 1.0.1i-27.21.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | openssl | 0 | 1.0.1i-27.21.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | openssl | 0 | 1.0.1i-52.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | openssl | 0 | 1.0.1i-52.1 |
| Ubuntu:14.04:LTS | openssl | 0 | 1.0.1f-1ubuntu2.20 |
| Ubuntu:16.04:LTS | openssl | 0 | 1.0.2g-1ubuntu4.4 |
| openSUSE:Tumbleweed | openssl-1_1 | 0 | 1.1.1l-1.2 |
Related vulnerabilities
- CVE-2016-7055 There is a carry propagating bug in the Broadwell-specific Montgomery multiplication… Also affects openssl
- CVE-2017-3732 There is a carry propagating bug in the x86_64 Montgomery squaring procedure in OpenSSL… Also affects openssl
- CVE-2017-3731 If an SSL/TLS server or client is running on a 32-bit host, and a specific cipher is… Also affects openssl
- CVE-2016-7052 crypto/x509/x509_vfy.c in OpenSSL 1.0.2i allows remote attackers to cause a denial of… Also affects openssl
- CVE-2016-6306 The certificate parser in OpenSSL before 1.0.1u and 1.0.2 before 1.0.2i might allow… Also affects openssl
- CVE-2016-6304 Multiple memory leaks in t1_lib.c in OpenSSL before 1.0.1u, 1.0.2 before 1.0.2i, and… Also affects openssl
- CVE-2016-6303 Integer overflow in the MDC2_Update function in crypto/mdc2/mdc2dgst.c in OpenSSL before… Also affects openssl
- CVE-2016-6302 The tls_decrypt_ticket function in ssl/t1_lib.c in OpenSSL before 1.1.0 does not consider… Also affects openssl