Service hang via user-controlled regular expressions
Published Jun 29, 2022 · Updated Apr 22, 2025
ReDoS in RSSHub before commit 5c4177441417 allows remote attackers to hang the service through crafted filter parameters. The parameter middleware constructs JavaScript RegExp objects directly from filter and filterout query values, then passes them to String.match without a timeout. Unauthenticated network access to any route is sufficient unless access control is added; one request can occupy a CPU core for hours and leave the instance unresponsive.
Summary
What happened
ReDoS in RSSHub before commit 5c4177441417 allows remote attackers to hang the service through crafted filter parameters. The parameter middleware constructs JavaScript RegExp objects directly from filter and filterout query values, then passes them to String.match without a timeout. Unauthenticated network access to any route is sufficient unless access control is added; one request can occupy a CPU core for hours and leave the instance unresponsive.
The record
- CVE
- CVE-2022-31110
- Published
- Jun 29, 2022
- Updated
- Apr 22, 2025
- Vendor
- DIYgod
- Product
- RSSHub
- Classifications
- CWE-400, CWE-1333, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 29, 2022CVE publishedPublication date reported by the CVE source.
- Apr 22, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=commits prior to 5c4177441417b44a6e45c3c63e9eac2504abeb5b
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- RSSHub catastrophic-backtracking proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo