Miggo Logo

CVE-2022-25762:
Improper socket reuse in Apache Tomcat

8.6

CVSS Score
3.1

Basic Information

EPSS Score
0.57908%
Published
5/14/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.tomcat:tomcatmaven>= 8.5.0, < 8.5.758.5.75
org.apache.tomcat:tomcatmaven>= 9.0.0M1, < 9.0.209.0.20

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper socket reuse during concurrent WebSocket message transmission and connection closure. Key functions in Tomcat's WebSocket implementation (WsRemoteEndpointImplServer, WsSession) directly manage connection states and resource release. Errors in these methods' synchronization or state checks during closure could allow double-pooling. The SocketProcessorBase.run() is included with medium confidence due to its role in socket task handling, though its direct involvement depends on thread scheduling specifics not explicitly documented in the vulnerability description.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

I* * w** *ppli**tion s*n*s * W**So*k*t m*ss*** *on*urr*ntly wit* t** W**So*k*t *onn**tion *losin* w**n runnin* on *p**** Tom**t *.*.* to *.*.** or *p**** Tom**t *.*.*.M* to *.*.**, it is possi*l* t**t t** *ppli**tion will *ontinu* to us* t** so*k*t *

Reasoning

T** vuln*r**ility st*ms *rom improp*r so*k*t r*us* *urin* *on*urr*nt W**So*k*t m*ss*** tr*nsmission *n* *onn**tion *losur*. K*y *un*tions in Tom**t's W**So*k*t impl*m*nt*tion (WsR*mot**n*pointImplS*rv*r, WsS*ssion) *ir**tly m*n*** *onn**tion st*t*s *