CVE-2022-21653Hash collision in typelevel jawn
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Maven, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jawn | Fix pending | UBUNTU-CVE-2022-21653 | |
| Ubuntu 26.04 | jawn | Under investigation | UBUNTU-CVE-2022-21653 | |
| Ubuntu 25.10 | jawn | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-21653 | |
| Ubuntu 24.04 | jawn | Under investigation | UBUNTU-CVE-2022-21653 | |
| Ubuntu 22.04 | jawn | Under investigation | UBUNTU-CVE-2022-21653 | |
| Ubuntu 20.04 | jawn | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-21653 | |
| Maven library | org.typelevel:jawn-parser_0.25 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_0.27 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.10 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.11 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.12 | Fixed | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven library | org.typelevel:jawn-parser_2.13 | Fixed | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven library | org.typelevel:jawn-parser_2.13.0-m5 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.13.0-rc1 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.13.0-rc2 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_2.13.0-rc3 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3 | Fixed | 1.3.2 | GHSA-vc89-hccf-rq55 |
| Maven library | org.typelevel:jawn-parser_3.0.0-m1 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3.0.0-m2 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3.0.0-m3 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3.0.0-rc1 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3.0.0-rc2 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parser_3.0.0-rc3 | Fix pending | GHSA-vc89-hccf-rq55 | |
| Maven library | org.typelevel:jawn-parserg | Fix pending | GHSA-vc89-hccf-rq55 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- typelevel jawn: affected: < 1.3.2
References
- https://github.com/typelevel/jawn/security/advisories/GHSA-vc89-hccf-rq55
- https://github.com/typelevel/jawn/pull/390
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.