CVE-2018-1336: Apache Tomcat UTF-8 Decoder Overflow

Summary

17/10/2018
Yes i
High
7.5

CVE-2018-1336: In Apache Tomcat there is an improper handing of overflow in the UTF-8 decoder. Affects org.apache.tomcat.embed:tomcat-embed-core across 4 version ranges.

>= 7.0.28, < 7.0.87 >= 8.0.0RC1, < 8.0.51 >= 8.5.0, < 8.5.31 >= 9.0.0.M9, < 9.0.8

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Tomcat is an open-source web server and servlet container that is widely used for hosting Java-based web applications. It provides a robust and scalable platform for running Java web applications. The tomcat-embed-core package is a Maven artifact that allows embedding Tomcat directly into a Java application. This vulnerability affects versions 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 of the tomcat-embed-core package.

Vulnerability Detail

The vulnerability in Apache Tomcat is related to the UTF-8 decoder's improper handling of overflow with supplementary characters. This flaw can be exploited to trigger an infinite loop in the decoder, leading to a Denial of Service (DoS) condition. An attacker can send specially crafted input to the affected application, causing the decoder to enter an infinite loop and consume excessive CPU resources. This can result in the application becoming unresponsive and unavailable to legitimate users. The Common Vulnerabilities and Exposures (CVE) identifier for this vulnerability is CVE-2018-1336.

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 7.0.28, < 7.0.87 7.0.87
  • >= 8.0.0RC1, < 8.0.51 8.0.51
  • >= 8.5.0, < 8.5.31 8.5.31
  • >= 9.0.0.M9, < 9.0.8 9.0.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to the fixed versions mentioned above.

Conclusion

The vulnerability in Apache Tomcat's UTF-8 decoder can lead to a Denial of Service (DoS) condition. It is crucial to upgrade the tomcat-embed-core package to the fixed versions mentioned above to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat.embed:tomcat-embed-core →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container that is widely used for hosting Java-based web applications.

The tomcat-embed-core package is a Maven artifact that allows embedding Tomcat directly into a Java application.

This vulnerability can lead to a Denial of Service (DoS) condition, causing the affected application to become unresponsive and unavailable to legitimate users.

To fix this vulnerability, it is recommended to upgrade the tomcat-embed-core package to the fixed versions mentioned above.

There is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to the fixed versions.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat.embed:tomcat-embed-core.

How To Fix

Latest published version: 11.0.27 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 7.0.28, < 7.0.87 7.0.87
  • >= 8.0.0RC1, < 8.0.51 8.0.51
  • >= 8.5.0, < 8.5.31 8.5.31
  • >= 9.0.0.M9, < 9.0.8 9.0.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback