CVE-2022-31781

Regular Expression Denial of Service (ReDoS) in ContentType.java. (GHSL-2022-022)

HIGH
7.5
CVSS Score
Published: July 13, 2022 at 07:25 AM UTC
Updated: June 17, 2026 at 04:46 AM UTC
1 product affected across 1 vendorTapestry

Using Apache Tapestry by Apache Software Foundation?

Get instant alerts when new vulnerabilities affect Apache Tapestry - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

Description

Apache Tapestry up to version 5.8.1 is vulnerable to Regular Expression Denial of Service (ReDoS) in the way it handles Content Types. Specially crafted Content Types may cause catastrophic backtracking, taking exponential time to complete. Specifically, this is about the regular expression used on the parameter of the org.apache.tapestry5.http.ContentType class. Apache Tapestry 5.8.2 has a fix for this vulnerability. Notice the vulnerability cannot be triggered by web requests in Tapestry code alone. It would only happen if there's some non-Tapestry codepath passing some outside input to the ContentType class constructor.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.8.1v < 5.8.2
Affected range stops below 5.8.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.8.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_MISCMailing ListVendor Advisory
https://www.openwall.com/lists/oss-security/2022/07/12/3

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card