Repository navigation
v3.6.4
LibJWT 3.6.4 is a security release. It fixes one vulnerability. All 3.x users should upgrade — 3.0.0 through 3.6.3 are affected.
This release is ABI-compatible with 3.6.3. An nm diff shows the same 155 exported symbols, so per the libtool rules only the SONAME revision advances (18:3:4 → 18:4:4). The SONAME stays libjwt.so.14 and existing binaries keep working.
🛡️ Security fix
- GHSA-75c8-gwgm-cvfm (Medium, 3.0.0–3.6.3): when an application hands the verifier a token of
INT_MAXbytes (about 2 GiB) or more, the token length — and the header, payload and signature lengths it is split into — overflow theintthey are held in, and a buffer sized from a wrapped length is too small for the bytes read or written into it. In the common case the verifying process crashes; on the JWS JSON Serialization path with the Jansson backend it is an out-of-bounds write. Reaching it requires an application that accepts and verifies a multi-gigabyte token, which most deployments bound long before the library is called; the bundledjwt-verifytool is not affected (it caps a stdin token at 1 MiB).- Affected:
jwt_checker_verify()andjwt_checker_verify_detached(). - Fix: both reject a token whose length is
INT_MAXor more before it is parsed.
- Affected:
📏 Follow-up
- A configurable maximum input size for token and JWK parsing — a sensible default well below this
INT_MAXbackstop, settable through the API — is tracked in #378.
Full Changelog: v3.6.3...v3.6.4