Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-33996 EUVD-2026-16899

LibJWT has NULL/bounds validation in JWK octet and RSA PSS parsing

Published Mar 27, 2026 · Updated Mar 31, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 libjwt3 3.3.2-1 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —

References