# CVE-2022-31781: Apache Tapestry 5.8.1 vulnerable to ReDoS via Content Types causing catastrophic backtracking

Source: https://junglewise.ai/threats/cve-2022-31781-apache-tapestry-5-8-1-vulnerable-to-redos-via-content-types  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-07-14  
License: CC BY 4.0 with a link back

CVE-2022-31781 · Severity: low · CVSS 3.1 · Published 2022-07-14

Apache Tapestry 5.8.1 vulnerable to ReDoS via Content Types causing catastrophic backtracking

Technologies: [org.apache.tapestry:tapestry-core (Maven)](https://junglewise.ai/threats/technologies/org-apache-tapestry-tapestry-core). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-31781 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-31781 being exploited in the wild.

**How severe is CVE-2022-31781?** Low severity, with a CVSS score of 3.1, published 14 July 2022.

**Which products and versions are affected?** org.apache.tapestry:tapestry-core (Maven) ECOSYSTEM:introduced=0,fixed=5.8.2.

**Is there a fix for CVE-2022-31781?** Yes. org.apache.tapestry:tapestry-core (Maven): upgrade to 5.8.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-31781?** Check whether you run org.apache.tapestry:tapestry-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.tapestry:tapestry-core (Maven): upgrade to 5.8.2 or later

  ```sh
  # set org.apache.tapestry:tapestry-core to 5.8.2 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.tapestry:tapestry-core (Maven) ECOSYSTEM:introduced=0,fixed=5.8.2

## Identifiers

- CVE-2022-31781
- GHSA-227g-7cvv-6ff3

## Related threats

- [Apache Tapestry allows deserialization of untrusted data](https://junglewise.ai/threats/cve-2022-46366-apache-tapestry-allows-deserialization-of-untrusted-data)
- [Deserialization of Untrusted Data in Apache Tapestry](https://junglewise.ai/threats/cve-2019-0195-deserialization-of-untrusted-data-in-apache-tapestry)
- [Apache Tapestry Unsafe Object Storage](https://junglewise.ai/threats/cve-2014-1972-apache-tapestry-unsafe-object-storage)
- [Information Exposure in Apache Tapestry](https://junglewise.ai/threats/cve-2021-30638-information-exposure-in-apache-tapestry)
- [Improper file downloads in Apache Tapestry](https://junglewise.ai/threats/cve-2020-13953-improper-file-downloads-in-apache-tapestry)
