Skip to main content

Libjwt CVE-2026-33996

MEDIUM
NULL Pointer Dereference (CWE-476)
2026-03-27 GitHub_M
5.8
CVSS 4.0 · GitHub Advisory
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

GitHub Advisory PRIMARY 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
Red Hat 5.9 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Adjacent
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Controlled
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:benmcollins:libjwt:*:*:*:*:*:*:*:*

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy