Libjwt
CVE-2026-33996
MEDIUM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 5.8 with CVSS 4.0 vector (AV:A/AC:H/AT:P/PR:N/UI:A) indicates moderate risk with non-trivial attack preconditions. Attack vector is adjacent network (AV:A), requiring the attacker to be on the same network segment or have local access, and attack complexity is high (AC:H) with persistent timing requirements (AT:P). The vulnerability is unauthenticated (PR:N) and requires user interaction (UI:A), such as importing a malicious JWK file. The impact is limited to availability (VA:H), with integrity and confidentiality side effects (VI:L, VC:L) from the crash context. This is NOT a remote code execution or authentication bypass; rather, it is a denial-of-service vector that requires specific, coordinated preconditions. While no active exploitation is confirmed, the attack surface depends heavily on deployment context: applications that automatically or regularly refresh RSA-PSS keys from external JWK endpoints face higher practical risk than those using static, vendor-supplied keys. The reliance on user action and network adjacency reduces the SSVC severity compared to the raw CVSS score. |
| Exploit ScenarioDerived | An attacker on the same network (or with local access) crafts a malicious JWK file with integer values substituted for string fields in an RSA-PSS key definition. A developer or automated system imports this file via a vulnerable LibJWT API, expecting to extract a public key. The library's JWK parser attempts to dereference a NULL pointer when processing the malformed field, causing a segmentation fault and crashing the application or service. This could be leveraged to disrupt JWT validation in authentication services or key management systems, though the attack requires both network adjacency and user interaction, limiting real-world applicability to targeted scenarios. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 27, 2026
LibJWT versions 3.0.0 through 3.2.x are vulnerable to denial of service through a NULL pointer dereference in RSA-PSS JWK parsing. When processing specially crafted JWK files that substitute integers for expected string values, the library fails to validate input types, causing a crash. This affects applications that import RSA-PSS keys from JWK files, particularly those handling untrusted key sources. No public exploit code has been identified; patch 3.3.0 resolves the issue.
RemediationAI
Vendor-released patch: LibJWT 3.3.0. Upgrade immediately if your application uses RSA-PSS JWK import. If upgrading is not immediately feasible, implement a workaround: do not import RSA-PSS keys from JWK files, particularly untrusted sources; instead, use pre-provisioned RSA-PSS keys or alternative key exchange mechanisms. Validate all JWK input using the jwk2key utility provided by LibJWT before processing to detect malformed files. For applications in development, enforce strict code review of JWK parsing paths. See https://github.com/benmcollins/libjwt/security/advisories/GHSA-ph96-hqpc-9f66 for detailed vendor remediation guidance.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LibJWT is a C-based implementation of JSON Web Token (JWT) standards, which rely on JSON Web Key (JWK) format for cryptographic key exchange. The vulnerability stems from insufficient type validation during JWK deserialization for RSA-PSS (RSA Probabilistic Signature Scheme) keys. CWE-476 (NULL pointer dereference) indicates the code path fails to verify that parsed JSON values are of the expected string type before dereferencing pointers, allowing an attacker to trigger undefined behavior by providing integers in place of string fields. The RSA-PSS algorithm is used for high-assurance digital signatures, making key import a critical security boundary. The flaw is rooted in the library's JWK parsing logic, which was refactored in version 3.0.0 and remained vulnerable through 3.2.x.
Know when Libjwt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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.
Executive ViewAI
Organizations using version 3.0.0 and should be aware of moderate risk from CVE-2026-33996, a null pointer dereference vulnerability rated CVSS 5.8. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)GitHub Advisory
libjwt 1.15.3 uses strcmp (which is not constant time) to verify authentication, which makes it easier to bypass authent
Algorithm confusion in LibJWT 3.0.0 through 3.3.2 allows authentication bypass when RSA JWKs lack the 'alg' parameter. T
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB