cve.bz

CVE-2018-8037 Race Condition

5.9 mediumEPSS 11%Fix available

Medium (5.9). EPSS 11% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 8.5.32, 9.0.10.

On this page
If an async request was completed by the application at the same time as the container triggered the async timeout, a race condition existed that could result in a user seeing a response intended for a different user. An additional issue was present in the NIO and NIO2 connectors that did not correctly track the closure of the connection when an async request was completed by the application and timed out by the container at the same time. This could also result in a user seeing a response intended for another user. Versions Affected: Apache Tomcat 9.0.0.M9 to 9.0.9 and 8.5.5 to 8.5.31.

Severity

CVSS 3.0

5.9 medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
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-8037 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-8037?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-8037?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-8037 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 8.5.5 through 8.5.31
apache:tomcatfrom 9.0.1 through 9.0.9
apache:tomcat9.0.0
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
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6v52-mj5r-7j2mMavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0.M9 <9.0.109.0.10
GHSA-6v52-mj5r-7j2mMavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.5 <8.5.328.5.32

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9tomcat88.5.14-1+deb9u3DSA-4281-1
Ubuntu18.04:LTStomcat88.5.39-1ubuntu1~18.04.1UBUNTU-CVE-2018-8037
Red Hatenterprise_linux:8::appstreamapache-commons-collections0:3.2.2-10.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamapache-commons-lang0:2.6-21.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreambea-stax, bea-stax-api0:1.2.0-16.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamglassfish-fastinfoset0:1.2.13-9.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamglassfish-jaxb, glassfish-jaxb-core, glassfish-jaxb-txw2 and 1 more0:2.2.11-11.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamglassfish-jaxb-api0:2.2.12-8.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamjackson-core, jackson-databind, jackson-annotations and 2 more0:2.9.8-1.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamjackson-module-jaxb-annotations0:2.7.6-4.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamjakarta-commons-httpclient1:3.1-28.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreamjavassist, javassist-javadoc0:3.18.1-8.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreampki-servlet-4.0-api, pki-servlet-container1:9.0.7-14.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
Red Hatenterprise_linux:8::appstreampython-nss, python3-nss, python-nss-doc and 2 more0:1.0.1-10.module+el8.0.0+3248+9d514f3bRHSA-2019:1529
13 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
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1
AlmaLinux8apache-commons-collections3.2.2-10.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8apache-commons-collections3.2.2-10.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
AlmaLinux8apache-commons-lang2.6-21.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8apache-commons-lang2.6-21.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
AlmaLinux8bea-stax-api1.2.0-16.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8bea-stax-api1.2.0-16.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
AlmaLinux8glassfish-fastinfoset1.2.13-9.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8glassfish-fastinfoset1.2.13-9.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
AlmaLinux8glassfish-jaxb-api2.2.12-8.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8glassfish-jaxb-api2.2.12-8.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
AlmaLinux8glassfish-jaxb-core, glassfish-jaxb-txw2, glassfish-jaxb-runtime2.2.11-11.module_el8.5.0+150+5f0dbea0ALSA-2019:1529
AlmaLinux8glassfish-jaxb-core, glassfish-jaxb-txw2, glassfish-jaxb-runtime2.2.11-11.module_el8.5.0+2577+9e95fe00ALSA-2019:1529
29 more for AlmaLinux in the JSON.
Rocky Linux8apache-commons-collections0:3.2.2-10.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8apache-commons-collections0:3.2.2-10.module+el8.3.0+74+855e3f5dRLSA-2019:1529
Rocky Linux8apache-commons-lang0:2.6-21.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8apache-commons-lang0:2.6-21.module+el8.3.0+74+855e3f5dRLSA-2019:1529
Rocky Linux8bea-stax0:1.2.0-16.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8glassfish-fastinfoset0:1.2.13-9.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8glassfish-jaxb0:2.2.11-11.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8glassfish-jaxb-api0:2.2.12-8.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8jackson-module-jaxb-annotations0:2.7.6-4.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8jakarta-commons-httpclient1:3.1-28.module+el8.3.0+53+ea062990RLSA-2019:1529
Rocky Linux8jakarta-commons-httpclient1:3.1-28.module+el8.3.0+74+855e3f5dRLSA-2019:1529
Rocky Linux8javassist0:3.18.1-8.module+el8.3.0+53+ea062990RLSA-2019:1529
21 more for Rocky Linux in the JSON.

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; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8pki-deps:10.6-8000020190524054914.55190bc5Fixed 2019-06-18RHSA-2019:1529
Red Hat JBoss Web Server 5.0Fixed 2018-10-03RHSA-2018:2867
Red Hat JBoss Web Server 5.0 on RHEL 6jws5-tomcat-0:9.0.7-12.redhat_12.1.el6jwsFixed 2018-10-03RHSA-2018:2868
Red Hat JBoss Web Server 5.0 on RHEL 7jws5-tomcat-0:9.0.7-12.redhat_12.1.el7jwsFixed 2018-10-03RHSA-2018:2868
Red Hat BPM Suite 6tomcatNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Fuse 7tomcatNot 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 6jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 5jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 6jbosswebNot affected
Red Hat JBoss Enterprise Web Server 2tomcat6Not affected
Red Hat JBoss Enterprise Web Server 2tomcat7Not affected
Red Hat JBoss Fuse 6tomcatNot affected
Red Hat JBoss Fuse Service Works 6jbosswebNot affected
Red Hat JBoss Operations Network 3jbosswebNot affected
5 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-8037.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON