Description
LibJWT is a C JSON Web Token Library. Starting in version 3.0.0 and prior to version 3.3.0, the JWK parsing for RSA-PSS did not protect against a NULL value when expecting to parse JSON string values. A specially crafted JWK file could exploit this behavior by using integers in places where the code expected a string. This was fixed in v3.3.0. A workaround is available. Users importing keys through a JWK file should not do so from untrusted sources. Use the `jwk2key` tool to check for validity of a JWK file. Likewise, if possible, do not use JWK files with RSA-PSS keys.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| benmcollins | libjwt | >= 3.0.0, < 3.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libjwt3 | 3.3.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libjwt +1 | No fix yet | — |
| Ubuntu 26.04 LTS | libjwt +1 | No fix yet | — |
| Ubuntu 25.10 | libjwt | No fix yet | — |
| Ubuntu 24.04 LTS | libjwt | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libjwt | No fix yet | — |
| Ubuntu Pro 20.04 LTS | libjwt | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libjwt | No fix yet | — |