CVE-2022-31781

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

Published Jul 13, 2022 CVSS 3.1 · 7.5 High EPSS 2.0% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6199 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.
Github GHSA Github GHSA GHSA-227g-7cvv-6ff3 Apache Tapestry 5.8.1 vulnerable to ReDoS via Content Types causing catastrophic backtracking
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01699}

epss

{'score': 0.019}

Type Values Removed Values Added
Metrics epss

{'score': 0.01496}

epss

{'score': 0.01699}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 3, 2024, 7:26 AM
Reserved
May 27, 2022, 12:00 AM
Status
Modified
Published
Jul 13, 2022, 8:15 AM
Modified
Jun 17, 2026, 4:46 AM