Jawn
Jawn: Quadratic parsing effort in AsyncParser
Jawn is an open source JSON parser. Prior to 1.7.0, Jawn's AsyncParser can perform quadratic work when a single JSON token is delivered across many small chunks because each absorb call rescans the incomplete token from the start. A remote attacker who controls untrusted JSON input and its chunk sizes can exhaust CPU resources and cause denial of service in applications using AsyncParser. This issue is fixed in version 1.7.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.7.0
Fixed in 1.7.0
- < 1.7.0
Fixed in 1.7.0
- < 1.7.0
Fixed in 1.7.0
- < 1.7.0
Fixed in 1.7.0
Mitigation
Upgrade jawn to 1.7.0 or later.
Upgrade jawn-parser_2.12 to 1.7.0 or later.
Upgrade jawn-parser_2.13 to 1.7.0 or later.
Upgrade jawn-parser_3 to 1.7.0 or later.
References
- Vendor advisory github.com/typelevel/jawn/security/advisories/…
- Patch github.com/typelevel/jawn/commit/cddcd5e3387c3…
- Release notes github.com/typelevel/jawn/releases/tag/v1.7.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.