Vulnerability · Published Aug 18, 2021 · Assigned by GitHub_M
CVE-2021-37714Crafted input may cause the jsoup HTML and XML parser to get stuck, timeout, or throw unchecked exceptions
High 7.5
In plain English
A high-severity infinite loop in jsoup from jhy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.7% (higher than 94% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jsoup | 1.14.2-1 | DEBIAN-CVE-2021-37714 |
| Debian:13 | jsoup | 1.14.2-1 | DEBIAN-CVE-2021-37714 |
| Debian:14 | jsoup | 1.14.2-1 | DEBIAN-CVE-2021-37714 |
| Maven | org.jsoup:jsoup | 1.14.2 | GHSA-m72m-mhq2-9p6c |
| Ubuntu:22.04:LTS | jsoup | no fix listed | UBUNTU-CVE-2021-37714 |
Affected products (as reported)
Weakness: CWE-835, CWE-248 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/jhy/jsoup/security/advisories/GHSA-m72m-mhq2-9p6c x_refsource_CONFIRM
- https://jsoup.org/news/release-1.14.1 x_refsource_MISC
- https://jsoup.org/news/release-1.14.2 x_refsource_MISC
- [james-notifications] 20210820 [GitHub] [james-project] chibenwa opened a new pull request #609: [UPGRADE] JSOUP 1.14.1 -> 1.14.2 to address CVE-2021-37714 mailing-list, x_refsource_MLIST
- [james-notifications] 20210823 [GitHub] [james-project] chibenwa merged pull request #609: [UPGRADE] JSOUP 1.14.1 -> 1.14.2 to address CVE-2021-37714 mailing-list, x_refsource_MLIST
- [james-notifications] 20210823 [james-project] branch master updated: [UPGRADE] JSOUP 1.14.1 -> 1.14.2 to address CVE-2021-37714 mailing-list, x_refsource_MLIST
- [maven-issues] 20210830 [jira] [Created] (WAGON-612) Update jsoup to >= 1.14.2 for fix security issue mailing-list, x_refsource_MLIST
- [maven-issues] 20210901 [jira] [Created] (MNG-7227) Fix CVE-2021-37714 present in apache-maven mailing-list, x_refsource_MLIST
- [maven-issues] 20210901 [jira] [Updated] (MNG-7227) Fix CVE-2021-37714 present in apache-maven mailing-list, x_refsource_MLIST
- [maven-issues] 20210901 [jira] [Commented] (MNG-7227) Fix CVE-2021-37714 present in apache-maven mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220210-0022/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC