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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.typelevel:jawn-parser_0.25 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_0.27 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.10 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.11 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.12 | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.13 | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.13.0-M5 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.13.0-RC1 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.13.0-RC2 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_2.13.0-RC3 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3 | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-M1 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-M2 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-M3 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-RC1 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-RC2 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parser_3.0.0-RC3 | no fix listed | GHSA-vc89-hccf-rq55 |
| Maven | org.typelevel:jawn-parserg | no fix listed | GHSA-vc89-hccf-rq55 |
| Ubuntu:22.04:LTS | jawn | no fix listed | UBUNTU-CVE-2022-21653 |
| Ubuntu:24.04:LTS | jawn | no fix listed | UBUNTU-CVE-2022-21653 |
| Ubuntu:25.10 | jawn | no fix listed | UBUNTU-CVE-2022-21653 |
| Ubuntu:26.04:LTS | jawn | no fix listed | UBUNTU-CVE-2022-21653 |
| Ubuntu:26.10 | jawn | no fix listed | UBUNTU-CVE-2022-21653 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/typelevel/jawn/security/advisories/GHSA-vc89-hccf-rq55 x_refsource_CONFIRM
- https://github.com/typelevel/jawn/pull/390 x_refsource_MISC