Infinite Loop Vulnerability in haskell-xml-conduit Package

haskell-xml-conduit Updated 02 Oct 2025

Summary

18/12/2022
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2021-4249: A vulnerability was found in xml-conduit. Affects haskell-xml-conduit versions < 1.9.1.1-1. Fixed in 1.9.1.1-1. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The haskell-xml-conduit package is a Haskell library designed for parsing and manipulating XML data. It provides a convenient interface for working with XML streams, making it easier for developers to handle XML in their applications. However, this package is susceptible to a specific vulnerability that can lead to an infinite loop, potentially affecting the stability and performance of applications that rely on it.

Vulnerability Detail

A vulnerability was identified in the xml-conduit library, specifically in the DOCTYPE Entity Expansion Handler function located in the file xml-conduit/src/Text/XML/Stream/Parse.hs. This vulnerability can be exploited to create an infinite loop, which may lead to denial of service by consuming system resources. The issue arises from improper handling of certain XML constructs, allowing an attacker to craft XML input that triggers this behavior. The vulnerability is classified as problematic and can be exploited remotely, making it critical for affected users to address it promptly.

How To Fix

Minimum fixed version

1.9.1.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade haskell-xml-conduit

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the patched version as soon as possible.

Conclusion

The haskell-xml-conduit package has a critical vulnerability that can lead to infinite loops and denial of service. Users are strongly advised to upgrade to the patched version 1.9.1.1-1 to mitigate this risk. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for haskell-xml-conduit →

Share this vulnerability

FAQ

The vulnerability allows for an infinite loop due to improper handling of XML input, which can lead to denial of service.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

Failure to address this vulnerability may result in application crashes or unresponsive behavior, impacting user experience and system stability.

Yes, upgrading to version 1.9.1.1-1 of the haskell-xml-conduit package addresses the vulnerability.

Yes, the vulnerability can be exploited remotely, making it essential for users to upgrade their packages promptly.

Related vulnerabilities

Recent vulnerabilities recorded for haskell-xml-conduit.

How To Fix

Minimum fixed version

1.9.1.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade haskell-xml-conduit

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback