Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808948 (CVE-2021-37714) - dev-java/jsoup: DoS vulnerability (CVE-2021-37714)
Summary: dev-java/jsoup: DoS vulnerability (CVE-2021-37714)
Status: RESOLVED FIXED
Alias: CVE-2021-37714
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: https://github.com/jhy/jsoup/security...
Whiteboard: B3 [noglsa]
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2021-08-19 00:22 UTC by John Helmert III
Modified: 2021-12-13 20:05 UTC (History)
2 users (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 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 archtester Gentoo Infrastructure gentoo-dev Security 2021-11-14 14:32:33 UTC
Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2021-12-13 16:36:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3eaca4ad70ca78083f82df38d8f41983a715c1d8

commit 3eaca4ad70ca78083f82df38d8f41983a715c1d8
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-12-13 16:34:27 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-12-13 16:34:27 +0000

    dev-java/jsoup: treeclean
    
    Bug: https://bugs.gentoo.org/808948
    Closes: https://bugs.gentoo.org/641776
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-java/jsoup/Manifest           |  1 -
 dev-java/jsoup/jsoup-1.8.3.ebuild | 48 ---------------------------------------
 dev-java/jsoup/metadata.xml       | 20 ----------------
 profiles/package.mask             |  5 ----
 4 files changed, 74 deletions(-)
Comment 4 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-12-13 20:05:16 UTC
GLSA vote: no. All done!