CVE-2016-9954: High severity Irregex Project Irregex vulnerability
A vulnerability was found in irregex which is bundled as a part of chicken. Parsing a maliciously crafted regular expression could cause resource exhaustion resulting in a Denial of Service.
References:
http://seclists.org/oss-sec/2016/q4/681
Upstream patch:
https://github.com/ashinn/irregex/commit/a16ffc86eca15fca9e40607d41de3cea9cf868f1
Other sources
The backtrack compilation code in the Irregex package (aka IrRegular Expressions) before 0.9.6 for Scheme allows remote attackers to cause a denial of service (memory consumption) via a crafted regular expression with a repeating pattern.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.9.6
Event History
Frequently Asked Questions
What must an attacker be able to do to trigger the issue?
They need to cause the affected application to parse a crafted regular expression containing a repeating pattern. The reported attack is remote and does not require privileges or user interaction.
Which versions are affected?
Irregex versions before 0.9.6 are affected. Irregex is also bundled with Chicken, so deployments using Chicken should determine which Irregex version their package includes.
What can be done if an upgrade cannot be applied immediately?
Avoid accepting or compiling untrusted regular expressions, especially expressions with repeating patterns, until the upstream fix can be applied. The referenced upstream patch is commit a16ffc86eca15fca9e40607d41de3cea9cf868f1.