CVE-2018-1000654
Medium · 5.5CVSS
5.5
EPSS
2.0%
Published
Aug 20, 2018
CISA due date
—
Cloudanix analysis
A bug in a widely used data-reading library can make programs freeze or crash when they receive a specially made file, potentially interrupting services until fixed.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Denial-of-service via unbounded CPU consumption (reaching 100%) during ASN.1 object identifier expansion in _asn1_expand_object_id when a crafted file is parsed with asn1Parser, eventually causing the process to be killed.
Why it matters to the business
Services that parse untrusted ASN.1 data can become unresponsive or crash, interrupting operations; the issue has been public for years with available exploits but low and stable exploitation probability, reducing immediate urgency while still requiring remediation on affected deployments.
How an attack unfolds
An attacker prepares a malicious ASN.1 file that triggers the parsing flaw, then supplies it to any application (such as Apache via Bitnami) that invokes libtasn1 parsing routines; the target process enters a tight loop consuming full CPU until it is terminated or the system becomes unavailable.
How to fix it
Upgrade affected packages to fixed versions; for apache (Bitnami) deploy version 2.4.48 or later that incorporates the corrected libtasn1.
How to confirm the fix worked
Verify installed libtasn1 or dependent package versions against the fixed release; in a test environment replay the public proof-of-concept file and confirm absence of sustained 100% CPU usage.
Typical attack path
- Generate a crafted ASN.1 file containing a malicious object identifier
- Deliver the file to the target application through any parsing entry point
- Trigger asn1Parser or equivalent libtasn1 call on the file
- Sustain high CPU consumption leading to denial of service
How to detect it
Monitor process CPU utilization spikes correlated with ASN.1 parsing activity; review application logs for repeated or failed parsing of ASN.1 content and inspect any retained malicious test files.
What your security team should do
- Prioritize upgrade of apache (Bitnami) to 2.4.48+ on all instances
- Inventory other products that embed libtasn1 and schedule updates
- Add file-type and size checks before ASN.1 parsing where feasible
The record
GNU Libtasn1-4.13 libtasn1-4.13 version libtasn1-4.13, libtasn1-4.12 contains a DoS, specifically CPU usage will reach 100% when running asn1Paser against the POC due to an issue in _asn1_expand_object_id(p_tree), after a long time, the program will be killed. This attack appears to be exploitable via parsing a crafted file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.11 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.12 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.13 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.14 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.15 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.16 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.17 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.18 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.19 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.20 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.21 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.22 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.7 | libtasn1 | 0 | 4.12-r4 |
| Alpine:v3.8 | libtasn1 | 0 | 4.14-r0 |
| Alpine:v3.9 | libtasn1 | 0 | 4.14-r0 |
| Debian:10 | libtasn1-6 | 0 | No fix |
| Debian:11 | libtasn1-6 | 0 | 4.14-2 |
| Debian:12 | libtasn1-6 | 0 | 4.14-2 |
| Debian:13 | libtasn1-6 | 0 | 4.14-2 |
| Mageia:7 | libtasn1 | 0 | 4.14-1.mga7 |
| SUSE:Linux Enterprise Desktop 12 SP3 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Desktop 12 SP4 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 | libtasn1 | 0 | 4.13-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | libtasn1 | 0 | 4.13-4.5.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 | libtasn1 | 0 | 4.13-4.5.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | libtasn1 | 0 | 3.7-13.7.1 |
| SUSE:Linux Enterprise Server 12 SP3 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Server 12 SP4 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | libtasn1 | 0 | 4.9-3.10.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP4 | libtasn1 | 0 | 4.9-3.10.1 |
| Ubuntu:14.04:LTS | libtasn1-6 | 0 | No fix |
| Ubuntu:18.04:LTS | libtasn1-6 | 0 | No fix |
| Ubuntu:20.04:LTS | libtasn1-6 | 0 | 4.16.0-2 |
| Ubuntu:22.04:LTS | libtasn1-6 | 0 | 4.18.0-4 |
| Ubuntu:Pro:14.04:LTS | libtasn1-6 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | libtasn1-6 | 0 | 4.7-3ubuntu0.16.04.3+esm2 |
| Ubuntu:Pro:18.04:LTS | libtasn1-6 | 0 | No fix |
| openSUSE:Leap 15.0 | libtasn1 | 0 | 4.13-lp151.4.3.1 |
| openSUSE:Leap 15.1 | libtasn1 | 0 | 4.13-lp151.4.3.1 |
| openSUSE:Tumbleweed | libtasn1 | 0 | 4.17.0-1.2 |
Related vulnerabilities
- CVE-2017-10790 The _asn1_check_identifier function in GNU Libtasn1 through 4.12 causes a NULL pointer… Also affects libtasn1
- CVE-2017-6891 Two errors in the "asn1_find_node()" function (lib/parser_aux.c) within GnuTLS libtasn1… Also affects libtasn1-6
- CVE-2016-4008 The _asn1_extract_der_octet function in lib/decoding.c in GNU Libtasn1 before 4.8, when… Also affects libtasn1-6
- CVE-2015-3622 The _asn1_extract_der_octet function in lib/decoding.c in GNU Libtasn1 before 4.5 allows… Also affects libtasn1-6
- CVE-2015-2806 Stack-based buffer overflow in asn1_der_decoding in libtasn1 before 4.4 allows remote… Also affects libtasn1-6
- CVE-2014-3467 Multiple unspecified vulnerabilities in the DER decoder in GNU Libtasn1 before 3.6, as… Also affects libtasn1-6
- CVE-2025-13151 Stack-based buffer overflow in libtasn1 version: v4.20.0. Also affects libtasn1