Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887065 (CVE-2021-4249) - <dev-haskell/xml-conduit-1.9.1.1: infinite loop via crafted xml
Summary: <dev-haskell/xml-conduit-1.9.1.1: infinite loop via crafted xml
Status: CONFIRMED
Alias: CVE-2021-4249
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Security
URL: https://vuldb.com/?id.216204
Whiteboard: B4 [glsa?]
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-12-18 22:06 UTC by John Helmert III
Modified: 2025-05-21 10:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-18 22:06:45 UTC
CVE-2021-4249:

A vulnerability was found in xml-conduit. It has been classified as problematic. Affected is an unknown function of the file xml-conduit/src/Text/XML/Stream/Parse.hs of the component DOCTYPE Entity Expansion Handler. The manipulation leads to infinite loop. It is possible to launch the attack remotely. Upgrading to version 1.9.1.0 is able to address this issue. The name of the patch is 4be1021791dcdee8b164d239433a2043dc0939ea. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216204.

Patch is: https://github.com/snoyberg/xml/commit/4be1021791dcdee8b164d239433a2043dc0939ea

I see that commit has a tag for xml-hamlet-0.5.0.2 and for
html-conduit-1.3.2.2. Are both Gentoo packages affected?
Comment 1 Christopher Fore 2024-05-03 14:39:09 UTC
I brought this up in the -haskell channel regarding the PR and they said this only affects xml-conduit. Upstream just produces multiple packages from one repository so the tags for those made their way onto the commit.
Comment 2 Larry the Git Cow gentoo-dev 2025-05-21 10:11:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579f6b8babb24f03b82884a523a0f7c0fe4b8e9b

commit 579f6b8babb24f03b82884a523a0f7c0fe4b8e9b
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2024-04-22 16:22:08 +0000
Commit:     Mark Wright <gienah@gentoo.org>
CommitDate: 2025-05-21 10:10:14 +0000

    dev-haskell/html-conduit: add 1.3.2.2
    
    - Fix trivial QA warning
      - Empty IUSE
    
    Bug: https://bugs.gentoo.org/887065
    Closes: https://github.com/gentoo/gentoo/pull/36358
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Signed-off-by: Mark Wright <gienah@gentoo.org>

 dev-haskell/html-conduit/Manifest                  |  1 +
 .../html-conduit/html-conduit-1.3.2.2.ebuild       | 32 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)