CVE-2018-0739 Constructed ASN.1 types with a recursive definition could exceed the stack

Medium 6.5 Published Updated

Attackers can cause a denial of service via excessive recursion in ASN.1 parsing, requiring OpenSSL upgrades.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-0739?

CVE-2018-0739 is a medium-severity denial of service vulnerability in Canonical Ubuntu Linux, published on 27 Mar 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Constructed ASN.1 types with a recursive definition (such as can be found in PKCS7) could eventually exceed the stack given malicious input with excessive recursion. This could result in a Denial Of Service attack. There are no such structures used within SSL/TLS that come from untrusted sources so this is considered safe. Fixed in OpenSSL 1.1.0h (Affected 1.1.0-1.1.0g). Fixed in OpenSSL 1.0.2o (Affected 1.0.2b-1.0.2n).

Weakness: CWE-674

Which versions are affected by CVE-2018-0739?

It affects 3 products.

Linux distribution packages (40)
AAVMF Red Hat:enterprise_linux:7::serverAll versions0:20180508-3.gitee3198e672e2.el7
OVMF Red Hat:enterprise_linux:7::serverAll versions0:20180508-3.gitee3198e672e2.el7
ovmf Red Hat:enterprise_linux:7::serverAll versions0:20180508-3.gitee3198e672e2.el7
tomcat-native Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:1.2.17-19.redhat_19.ep7.el6
tomcat-native-debuginfo Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:1.2.17-19.redhat_19.ep7.el6
tomcat7 Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-admin-webapps Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-docs-webapp Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-el-2.2-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-javadoc Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-jsp-2.2-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-jsvc Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-lib Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-log4j Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-selinux Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-servlet-3.0-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat7-webapps Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:7.0.70-34.ep7.el6
tomcat8 Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-admin-webapps Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-docs-webapp Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-el-2.2-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-javadoc Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-jsp-2.3-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-jsvc Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-lib Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-log4j Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-selinux Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-servlet-3.1-api Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat8-webapps Red Hat:jboss_enterprise_web_server:3.1::el6All versions0:8.0.36-39.ep7.el6
tomcat-native Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:1.2.17-19.redhat_19.ep7.el7
tomcat-native-debuginfo Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:1.2.17-19.redhat_19.ep7.el7
tomcat7 Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-admin-webapps Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-docs-webapp Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-el-2.2-api Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-javadoc Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-jsp-2.2-api Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-jsvc Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-lib Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7
tomcat7-log4j Red Hat:jboss_enterprise_web_server:3.1::el7All versions0:7.0.70-34.ep7.el7

Products include Canonical Ubuntu Linux, Debian Debian Linux, Openssl Openssl.

How do I fix CVE-2018-0739?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-0739 being exploited?

There is no known exploitation of CVE-2018-0739 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-0739, DEBIAN-CVE-2018-0739, DLA-1330-1, DSA-4157-1, DSA-4158-1, GHSA-2qcx-c97v-hcr6 and 12 more.

Is CVE-2018-0739 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free