Skip to main content

liboauth2 CVE-2026-54431

| EUVDEUVD-2026-41277 MEDIUM
Improperly Implemented Security Check for Standard (CWE-358)
2026-07-02 CERT-PL GHSA-3pf6-g4x4-jm46
5.1
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft DPoP proof JWT with EC private key in JWK header
  2. Delivery
    Submit proof to liboauth2-protected API endpoint
  3. Exploit
    oauth2_token_verify() omits RFC 9449 §4.3 step 7 validation
  4. Execution
    Malformed proof accepted as valid
  5. Persist
    DPoP token binding bypassed
  6. Impact
    Private EC key material potentially logged or processed server-side

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V12 - Secure Communication Improperly implemented security check
Exploitation Conditions

Exploitation requires that the target server uses liboauth2 prior to version 2.3.0 AND has DPoP proof verification enabled - servers not using DPoP are entirely unaffected. The attacker must be able to submit an HTTP request carrying a crafted DPoP proof JWT to a DPoP-protected endpoint (standard network access to the API). No account credentials or prior authentication are required to submit a DPoP proof, as DPoP proofs are part of the unauthenticated token-presentation flow. The vulnerability is limited to the EC key type specifically mentioned in the description; whether RSA or other JWK key types are similarly mishandled is not confirmed from available data. The limiting factor on impact is that successful bypass of DPoP validation alone does not grant full account takeover - the attacker still needs a valid (though now unbounded) access token; the flaw removes the possession-proof binding rather than granting token issuance.

Impact

The assigned CVSS 4.0 score of 5.1 (Medium) with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N presents a notable inconsistency: AV:L (Local attack vector) conflicts with the nature of liboauth2 as a server-side network-facing library that processes DPoP proofs delivered over HTTP. The PR:N (no privileges) metric alongside AV:L is also atypical - a local-access-only flaw with no required privileges. This discrepancy should be verified with the scoring party (CERT-PL). In practice, the real-world attack surface is likely network-accessible: any attacker who can submit a crafted DPoP proof JWT to an endpoint protected by liboauth2 could trigger the flaw. The confidentiality impact (VC:L) reflects potential private key material disclosure if the embedded key is subsequently processed, logged, or reflected by the server. Integrity impact is assessed as present but omitted from the vendor vector - DPoP validation bypass weakens token-binding protections. No KEV listing, no EPSS data provided, and no POC is known, collectively suggesting this has not been weaponized as of analysis time. Real-world risk is moderate for DPoP-deploying services using this specific C library; organizations not using DPoP in their liboauth2 deployments are not affected by this specific flaw.

Exploit ScenarioDerived

An attacker targeting a resource server or authorization server built on liboauth2 constructs a DPoP proof JWT in which the jwk header parameter contains a complete EC private key (rather than only the public key component). The attacker submits this crafted proof alongside an access token to a DPoP-protected endpoint. Because oauth2_token_verify() does not enforce RFC 9449 §4.3 step 7, the proof is accepted as valid - bypassing the intended cryptographic binding check and potentially exposing the embedded private key to server-side logging, telemetry, or downstream processing. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 02, 2026

DPoP (Demonstrating Proof-of-Possession) proof verification in OpenIDC's liboauth2 C library incorrectly accepts malformed proofs that embed private Elliptic Curve (EC) key material in the JWK header, directly violating RFC 9449 §4.3 step 7. The oauth2_token_verify() function returns success instead of rejecting such proofs, subverting DPoP's core token-binding security guarantee and enabling information disclosure of private key material. No active exploitation is confirmed (not in CISA KEV), no public exploit code has been identified, and a patch is available in liboauth2 2.3.0.

RemediationAI

Upgrade liboauth2 to version 2.3.0 or later, which contains the fix per commit c0b57152ed6a0af33aeb04a60bd7f5bff5ab8800 (https://github.com/OpenIDC/liboauth2/commit/c0b57152ed6a0af33aeb04a60bd7f5bff5ab8800). The CERT-PL advisory at https://cert.pl/en/posts/2026/06/CVE-2026-54430 (note: URL references CVE-2026-54430, potentially a related sibling CVE from the same report - verify applicability) and the upstream repository at https://github.com/OpenIDC/liboauth2 are the authoritative sources. If immediate upgrade is not possible, a compensating control is to disable DPoP support at the application layer if it is not operationally required - this eliminates the affected code path entirely, though it removes the token-binding security benefit DPoP provides. Alternatively, deploy an API gateway or reverse proxy that pre-validates DPoP proof JWTs and rejects any containing private key material in the JWK header before they reach the liboauth2-based backend, though this adds architectural complexity and requires the proxy to implement RFC 9449 §4.3 step 7 correctly.

Affected VersionsENISA

liboauth2 0 <2.3.0

Affected Packages

euvd liboauth2 fix: 2.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

DPoP (RFC 9449) is an OAuth2 proof-of-possession mechanism that binds access tokens to a client-held asymmetric key pair. A DPoP proof is a signed JWT whose header includes a jwk parameter containing the public key - the verifier uses this to confirm the presenter holds the corresponding private key. RFC 9449 §4.3 step 7 explicitly mandates that verifiers MUST reject any DPoP proof whose jwk header contains private key material, since the JWK header is intended to carry only the public component. The affected library, liboauth2 (CPE: cpe:2.3:a:openidc:liboauth2:*:*:*:*:*:*:*:*), is an OpenIDC C library for building OAuth2/OIDC resource servers and authorization servers. The root cause maps to CWE-358 (Improperly Implemented Security Check for Standard): a required validation step mandated by the RFC specification was not implemented, causing a compliant-looking but invalid proof to pass verification. The elliptic curve (EC) key format is specifically implicated, suggesting the JWK parsing logic did not distinguish between public-only and private-key-bearing EC JWK structures.

Know when Liboauth2 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

Vendor (CERT-PL) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network vector because DPoP proofs arrive over HTTP; PR:N since proof submission requires no prior authentication; C:L and I:L reflect private key disclosure risk and DPoP binding bypass respectively.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 02, 2026 - 12:02 EUVD

DescriptionCVE.org

In liboauth2 the Demonstrating Proof-of-Possession (DPoP) verifier accepts a proof whose JSON Web Key (jwk) header contains private key material. RFC 9449 section 4.3 step 7 requires the verifier to reject such a proof but oauth2_token_verify() function returns success for a malformed DPoP proof that embeds the private Elliptic Curve (EC) key in the header.

This issue was fixed in version 2.3.0

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche C library for OAuth2/OIDC server implementations
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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.1%
Patch available Yes
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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

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