Infinite Loop Vulnerability in haskell-xml-conduit Package
Summary
CVE-2021-4249: A vulnerability was found in xml-conduit. Affects haskell-xml-conduit versions < 4be1021791dcdee8b164d239433a2043dc0939ea. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The haskell-xml-conduit package is a widely used library in Haskell for parsing and manipulating XML data. It provides a convenient way to handle XML streams and is essential for applications that require XML processing. However, it has been found to be vulnerable to a specific issue related to the DOCTYPE Entity Expansion Handler, which can lead to an infinite loop under certain conditions.
Vulnerability Detail
A vulnerability was identified in the xml-conduit library, specifically within the DOCTYPE Entity Expansion Handler. This issue can be exploited remotely, causing the application to enter an infinite loop, which may lead to denial of service. The vulnerability arises from improper handling of XML entities, allowing attackers to manipulate the input in a way that triggers the loop. The CVSS score for this vulnerability is 7.5, indicating a high severity level.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the fixed version as soon as possible.
Conclusion
The haskell-xml-conduit package has a significant vulnerability that can lead to an infinite loop when processing certain XML inputs. Users are strongly advised to upgrade to the latest version to protect their applications from potential denial of service attacks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for haskell-xml-conduit →
FAQ
The vulnerability allows for an infinite loop to occur when processing certain XML inputs, potentially leading to denial of service.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.
Versions prior to 1.9.1.0 are affected by this vulnerability.
Yes, upgrading to version 1.9.1.0 or later addresses this vulnerability.
While there are no specific workarounds, it is crucial to prioritize upgrading to the fixed version to mitigate the risk.
Related vulnerabilities
Recent vulnerabilities recorded for haskell-xml-conduit.