Skip to content

v3.6.4

Choose a tag to compare

@benmcollins benmcollins released this 17 Nov 13:59
· 54 commits to master since this release
0081a8d

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_MAX bytes (about 2 GiB) or more, the token length — and the header, payload and signature lengths it is split into — overflow the int they 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 bundled jwt-verify tool is not affected (it caps a stdin token at 1 MiB).
    • Affected: jwt_checker_verify() and jwt_checker_verify_detached().
    • Fix: both reject a token whose length is INT_MAX or more before it is parsed.

📏 Follow-up

  • A configurable maximum input size for token and JWK parsing — a sensible default well below this INT_MAX backstop, settable through the API — is tracked in #378.

Full Changelog: v3.6.3...v3.6.4