Vulnerability · Published Jan 5, 2022 · Assigned by GitHub_M

CVE-2022-21653Hash collision in typelevel jawn

Medium 5.9

In plain English

A medium-severity uncontrolled resource consumption in jawn from typelevel. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.8%top 42.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Jawn is an open source JSON parser. Extenders of the `org.typelevel.jawn.SimpleFacade` and `org.typelevel.jawn.MutableFacade` who don't override `objectContext()` are vulnerable to a hash collision attack which may result in a denial of service. Most applications do not implement these traits directly, but inherit from a library. `jawn-parser-1.3.1` fixes this issue and users are advised to upgrade. For users unable to upgrade override `objectContext()` to use a collision-safe collection.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.typelevel:jawn-parser_0.25no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_0.27no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.10no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.11no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.121.3.2GHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.131.3.2GHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.13.0-M5no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.13.0-RC1no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.13.0-RC2no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_2.13.0-RC3no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_31.3.2GHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-M1no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-M2no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-M3no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-RC1no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-RC2no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parser_3.0.0-RC3no fix listedGHSA-vc89-hccf-rq55
Mavenorg.typelevel:jawn-parsergno fix listedGHSA-vc89-hccf-rq55
Ubuntu:22.04:LTSjawnno fix listedUBUNTU-CVE-2022-21653
Ubuntu:24.04:LTSjawnno fix listedUBUNTU-CVE-2022-21653
Ubuntu:25.10jawnno fix listedUBUNTU-CVE-2022-21653
Ubuntu:26.04:LTSjawnno fix listedUBUNTU-CVE-2022-21653
Ubuntu:26.10jawnno fix listedUBUNTU-CVE-2022-21653

Affected products (as reported)

VendorProductVersions
typelevel jawn < 1.3.2

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References