Loop with Unreachable Exit Condition ('Infinite Loop') Affecting jsoup package, versions <1.14.2-150200.3.3.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
6.69% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES152-JSOUP-2767973
  • published20 Apr 2022
  • disclosed19 Apr 2022

Introduced: 19 Apr 2022

CVE-2021-37714  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade SLES:15.2 jsoup to version 1.14.2-150200.3.3.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jsoup package and not the jsoup package as distributed by SLES. See How to fix? for SLES:15.2 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1