# CVE-2026-33996: LibJWT has NULL/bounds validation in JWK octet and RSA PSS parsing

- Severity: Medium 5.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:A/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-03-27T22:21:21.465Z
- Modified: 2026-06-17T10:38:24.333Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- benmcollins libjwt: >= 3.0.0, < 3.3.0
- libjwt libjwt: from 3.0.0 before 3.3.0

## Every score

- GitHub_M: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:A/VC:L/VI:L/VA:H/SC:L/SI:L/SA:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/benmcollins/libjwt/security/advisories/GHSA-ph96-hqpc-9f66> (mitigation, vendor-advisory)
- <https://github.com/benmcollins/libjwt/commit/cfd890286fa49ae61b534c937c9f0428b5c6034c> (patch)

## Sources

- CVE List: [CVE-2026-33996](https://www.cve.org/CVERecord?id=CVE-2026-33996), CVE Terms of Use, modified 2026-03-31
- NVD: [CVE-2026-33996](https://nvd.nist.gov/vuln/detail/CVE-2026-33996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33996 · Whole record: https://cve.day/CVE-2026-33996.json · Rebuilt by cve.day 2026-11-25T22:59:17.466Z
