Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 808948 (CVE-2021-37714)

Summary: dev-java/jsoup: DoS vulnerability (CVE-2021-37714)
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: minor CC: fordfrog, java
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/jhy/jsoup/security/advisories/GHSA-m72m-mhq2-9p6c
See Also: https://github.com/gentoo/gentoo/pull/22931
Whiteboard: B3 [masked]
Package list:
Runtime testing required: ---

Description John Helmert III gentoo-dev Security 2021-08-19 00:22:00 UTC
CVE-2021-37714

jsoup is a Java library for working with HTML. Those using jsoup versions prior to 1.14.2 to parse untrusted HTML or XML may be vulnerable to DOS attacks. If the parser is run on user supplied input, an attacker may supply content that causes the parser to get stuck (loop indefinitely until cancelled), to complete more slowly than usual, or to throw an unexpected exception. This effect may support a denial of service attack. The issue is patched in version 1.14.2. There are a few available workarounds. Users may rate limit input parsing, limit the size of inputs based on system resources, and/or implement thread watchdogs to cap and timeout parse runtimes.


Please bump.
Comment 1 Larry the Git Cow gentoo-dev 2021-11-14 06:44:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09c37e5b083e097a0739be7d516036d51e9dd58f

commit 09c37e5b083e097a0739be7d516036d51e9dd58f
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2021-11-13 14:02:53 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2021-11-14 06:44:14 +0000

    profiles/package.mask last-rite dev-java/jsoup
    
    Bug: https://bugs.gentoo.org/808948
    
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/22931
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 2 John Helmert III gentoo-dev Security 2021-11-14 14:32:33 UTC
Thanks!