Skip to content

merbinr/CVE-2023-31606

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

CVE-2023-31606

Vulnerability

A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of redcloth gem >= v4.0.0. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.

What is ReDoS?

As per OWASP - The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time. For more information, refer to OWASP ReDoS.

Affected Product

Fixed Version

  • Not fixed yet

CVE ID

  • CVE-2023-31606

Vulnerability Type

  • Regular Expression Denial of Service (ReDoS)

Root Cause

  • The sanitize_html function of redcloth is using the below regex to sanitize the html tags.
 /<(/)([A-Za-z]\w*)([^>]?)(\s?/?)>/
  • This regex is matched with the user input provided in the sanitize_html function.

Impact

  • An attacker can cause a Denial of Service (DoS) via supplying a crafted payload.

CVSS

The last commit to the repository was made on 2019-03-28 and the last version v4.3.2 was released on 2016-05-24. The project is no longer maintained.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published