cve.bz

CVE-2018-1336 Infinite Loop

7.5 highEPSS 20%Fix available

High (7.5). EPSS 20% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 7.0.87, 8.0.51, 8.5.31.

On this page
An improper handing of overflow in the UTF-8 decoder with supplementary characters can lead to an infinite loop in the decoder causing a Denial of Service. Versions Affected: Apache Tomcat 9.0.0.M9 to 9.0.7, 8.5.0 to 8.5.30, 8.0.0.RC1 to 8.0.51, and 7.0.28 to 7.0.86.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
20% (unchanged from 20% a week ago; 20% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2023-12-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-1336 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1336?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1336?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-1336 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcatfrom 7.0.28 through 7.0.86
apache:tomcatfrom 8.0.0 through 8.0.51
apache:tomcatfrom 8.5.0 through 8.5.30
apache:tomcatfrom 9.0.1 through 9.0.7
apache:tomcat8.0.0:rc1
apache:tomcat8.0.0:rc10
apache:tomcat8.0.0:rc2
apache:tomcat8.0.0:rc3
apache:tomcat8.0.0:rc4
apache:tomcat8.0.0:rc5
apache:tomcat8.0.0:rc6
apache:tomcat8.0.0:rc7
apache:tomcat8.0.0:rc8
apache:tomcat8.0.0:rc9
apache:tomcat9.0.0:milestone10
apache:tomcat9.0.0:milestone11
apache:tomcat9.0.0:milestone12
apache:tomcat9.0.0:milestone13
apache:tomcat9.0.0:milestone14
apache:tomcat9.0.0:milestone15
apache:tomcat9.0.0:milestone16
apache:tomcat9.0.0:milestone17
apache:tomcat9.0.0:milestone18
apache:tomcat9.0.0:milestone19
apache:tomcat9.0.0:milestone20
apache:tomcat9.0.0:milestone21
apache:tomcat9.0.0:milestone22
apache:tomcat9.0.0:milestone23
apache:tomcat9.0.0:milestone24
apache:tomcat9.0.0:milestone25
apache:tomcat9.0.0:milestone26
apache:tomcat9.0.0:milestone27
apache:tomcat9.0.0:milestone9
redhat:jboss_enterprise_application_platform6.0.0
redhat:jboss_enterprise_application_platform6.4.0
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
debian:debian_linux8.0
debian:debian_linux9.0
redhat:jboss_enterprise_web_server3.0.0
redhat:jboss_enterprise_web_server5.0.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_workstation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m59c-jpc8-m2x4Mavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0.M9 <9.0.89.0.8
GHSA-m59c-jpc8-m2x4Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.0 <8.5.318.5.31
GHSA-m59c-jpc8-m2x4Mavenorg.apache.tomcat.embed:tomcat-embed-core>=8.0.0RC1 <8.0.518.0.51
GHSA-m59c-jpc8-m2x4Mavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.28 <7.0.877.0.87

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8tomcat88.0.14-1+deb8u13DLA-1491-1
Debian9tomcat88.5.14-1+deb9u3DSA-4281-1
Ubuntu14.04:LTStomcat77.0.52-1ubuntu0.15UBUNTU-CVE-2018-1336 USN-3723-1
Ubuntu16.04:LTStomcat88.0.32-1ubuntu1.7UBUNTU-CVE-2018-1336 USN-3723-1
Ubuntu18.04:LTStomcat88.5.39-1ubuntu1~18.04.1UBUNTU-CVE-2018-1336
UbuntuPro:16.04:LTStomcat77.0.68-1ubuntu0.4+esm1UBUNTU-CVE-2018-1336 USN-4791-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moretomcat, tomcat-lib, tomcat-jsvc and 7 more0:7.0.76-8.el7_5RHSA-2018:2921
Red Hatjboss_enterprise_application_platform:6::el5codehaus-jackson, codehaus-jackson-xc, codehaus-jackson-jaxrs and 2 more0:1.9.9-14.redhat_7.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5guava-libraries0:13.0.1-5.redhat_3.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5hibernate4-validator0:4.3.4-1.Final_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5hornetq0:2.3.25-27.SP28_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5ironjacamar-eap6, ironjacamar-jdbc-eap6, ironjacamar-core-api-eap6 and 7 more0:1.0.42-2.Final_redhat_2.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jboss-as-ee, jboss-as-cli, jboss-as-cmp and 52 more0:7.5.21-1.Final_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jboss-ejb-client0:1.0.41-1.Final_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jboss-modules0:1.3.11-1.Final_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jboss-vfs20:3.2.13-1.Final_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jboss-xnio-base0:3.0.17-1.GA_redhat_1.1.ep6.el5RHSA-2018:2742
Red Hatjboss_enterprise_application_platform:6::el5jbossas-core, jbossas-domain, jbossas-bundles and 4 more0:7.5.21-2.Final_redhat_1.1.ep6.el5RHSA-2018:2742
57 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Web and Scripting 15tomcat9.0.10-3.7.1SUSE-SU-2018:3011-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1tomcat8.0.53-10.35.1SUSE-SU-2018:3388-1
SUSELinux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3tomcat8.0.53-29.13.1SUSE-SU-2018:2699-1
SUSELinux Enterprise Server 12-LTSStomcat7.0.90-7.23.1SUSE-SU-2018:3261-1
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Fuse 6.3 and 7 standalone distributions ship but do not use tomcat, and as such are not affected by this flaw; however, Fuse Integration Services 2.0 and Fuse 7 on OpenShift provide the affected artifacts via their respective maven repositories, and will provide fixes for this issue in a future release.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7tomcat-0:7.0.76-8.el7_5Fixed 2018-10-16RHSA-2018:2921
Red Hat Fuse 7.2tomcatFixed 2018-12-04RHSA-2018:3768
Red Hat Fuse Intergration Services 2.0 based on Fuse 6.3 R8Fixed 2018-10-17RHSA-2018:2939
Red Hat JBoss Enterprise Application Platform 6.4jbosswebFixed 2018-09-24RHSA-2018:2740
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5codehaus-jackson-0:1.9.9-14.redhat_7.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5guava-libraries-0:13.0.1-5.redhat_3.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hibernate4-validator-0:4.3.4-1.Final_redhat_1.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5hornetq-0:2.3.25-27.SP28_redhat_1.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5ironjacamar-eap6-0:1.0.42-2.Final_redhat_2.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat JBoss Enterprise Application Platform 6.4 for RHEL 5jboss-as-appclient-0:7.5.21-1.Final_redhat_1.1.ep6.el5Fixed 2018-09-24RHSA-2018:2742
Red Hat AMQ Broker 7tomcatAffected
Red Hat BPM Suite 6tomcatNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat JBoss BRMS 5jbosswebNot affected
Red Hat JBoss BRMS 6tomcatNot affected
Red Hat JBoss Data Grid 6jbosswebNot affected
Red Hat JBoss Data Grid 7tomcatNot affected
Red Hat JBoss Data Virtualization 6jbosswebOut of support scope
Red Hat JBoss Enterprise Application Platform 5jbosswebNot affected
Red Hat JBoss Enterprise Web Server 2tomcat6Not affected
253 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-1336.

References

Check your stackJSON