Skip to main content

liboauth2 EUVDEUVD-2026-41276

| CVE-2026-54430 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-02 CERT-PL GHSA-qrcr-3862-9f4c
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
    Enumerate or infer target application's configured ALB signer ARN
  2. Delivery
    Craft unsigned JWT with matching signer and malicious kid path payload
  3. Exploit
    Submit JWT to liboauth2-protected application endpoint
  4. Execution
    Library appends unsanitized kid to alb_base_url pre-verification
  5. Persist
    Server issues GET request to attacker-chosen internal path
  6. Impact
    Attacker receives or infers response from internal target

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application uses liboauth2 with the AWS ALB JWT verification mode enabled - specifically, the oauth2_jose_jwks_aws_alb_resolve() function must be active in the library configuration. The attacker must know or enumerate the ARN configured as the expected signer value, since the SSRF path is only triggered when signer matches; without this, the JWT is rejected before the vulnerable branch executes. Authentication to the application is not required (PR:N in the provided CVSS 4.0 vector) - the crafted JWT is submitted as a raw bearer token before any session is established. The vulnerability is limited to GET requests (no POST/PUT capability), which constrains the impact to read-side SSRF rather than state-modifying server-side interactions. Deployments not using the AWS ALB verification path - including those using other liboauth2 verification modes (e.g., standard JWKS URI, introspection) - are not affected.

Impact

The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N, score 5.1) assigns a local attack vector, which is potentially inconsistent with the described scenario: an attacker crafting a JWT and submitting it to a network-exposed application endpoint is a network-reachable operation, not a local one. This discrepancy should be verified with the vendor - if the application only accepts JWTs from a co-located ALB process (not directly from the internet), AV:L is defensible, but in many AWS ALB deployments JWTs are forwarded as HTTP headers accessible to any caller. The absence of EPSS data and KEV listing means exploitation probability cannot be quantified from probabilistic signals; however, the low complexity (no special tooling) and zero privilege requirement (PR:N) offset the moderate score. The SSRF impact is limited to GET requests to internal paths, which cannot directly write data but can be leveraged for internal port scanning, metadata service probing (e.g., AWS IMDS at 169.254.169.254), or triggering side effects on internal HTTP services. No public exploit code has been identified at time of analysis, and CISA KEV status is not confirmed. Real-world risk is meaningfully higher for deployments where the application server has broad internal network access.

Exploit ScenarioDerived

An attacker targeting an application behind an AWS ALB that uses liboauth2 for JWT verification crafts a token with a signer field matching the application's configured ALB ARN (obtainable via AWS account enumeration or exposure) and sets kid to a path-traversal string such as ../../169.254.169.254/latest/meta-data/iam/security-credentials/. The attacker submits this JWT to the application's authentication endpoint; before any signature check occurs, the server constructs and fetches the crafted URL, potentially leaking AWS instance metadata or probing internal services. No public exploit code has been identified at time of analysis, but the technique requires only standard JWT libraries to construct.

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

Server-Side Request Forgery in liboauth2 prior to version 2.3.0 allows an unauthenticated attacker to force any application using the AWS ALB JWT verification path to issue GET requests to arbitrary internal network paths. The vulnerability exists because the oauth2_jose_jwks_aws_alb_resolve() function reads the unverified kid JWT header field and appends it directly to the configured alb_base_url - without URL encoding or path sanitization - before any cryptographic signature check occurs. No public exploit code has been identified at time of analysis, but the low attack complexity and zero privilege requirement make this a meaningful risk for AWS-integrated deployments where liboauth2 handles ALB token verification.

RemediationAI

Upgrade liboauth2 to version 2.3.0 or later, which resolves the issue via commit 347507ac5b51f48c2933bbe49b2ee07c2af4712b (https://github.com/OpenIDC/liboauth2/commit/347507ac5b51f48c2933bbe49b2ee07c2af4712b). If an immediate upgrade is not possible, restrict the application's outbound HTTP connectivity using host-based firewall rules or security group policies to block requests to sensitive internal endpoints such as the AWS Instance Metadata Service (169.254.169.254), internal VPC services, and non-ALB endpoints - this limits the SSRF blast radius but does not eliminate the vulnerability. Additionally, deploying a WAF or API gateway that validates JWT structure before forwarding to liboauth2-protected services can reduce exposure, though this does not substitute for patching since the bypass occurs within the library itself. Both workarounds carry operational trade-offs: firewall rules require ongoing maintenance as internal topology changes, and WAF-based mitigations may introduce latency or false positives.

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

liboauth2 (CPE: cpe:2.3:a:openidc:liboauth2:*:*:*:*:*:*:*:*) is an open-source C library maintained by the OpenIDC project, used primarily by Apache HTTP Server and nginx modules (such as mod_auth_openidc) to perform OAuth2 and OpenID Connect token validation. The vulnerable function oauth2_jose_jwks_aws_alb_resolve() implements key resolution for JWTs issued by AWS Application Load Balancers. The root cause is CWE-918 (Server-Side Request Forgery): the function reads both signer and kid from the JWT header before verifying the token's signature. If signer matches the operator-configured ARN, the raw kid value is concatenated onto alb_base_url and an HTTP GET is dispatched immediately - violating the fundamental security invariant that JWT header fields must be treated as untrusted input until signature verification completes. Because kid is not URL-encoded or path-sanitized, an attacker who controls the JWT can steer the server's outbound request to any internal path reachable from the application host. The fix is confirmed in commit 347507ac5b51f48c2933bbe49b2ee07c2af4712b and released as version 2.3.0.

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:N/VI:L/VA:N/SC:L/SI:N/SA:N
vuln.today AI 5.8 MEDIUM

JWT submitted over network pre-verification requires no privileges; scope changes as SSRF reaches internal systems; no integrity or availability impact on the vulnerable system itself.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
Red Hat 5.8 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
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

liboauth2 is vulnerable to Server-Side Request Forgery in oauth2_jose_jwks_aws_alb_resolve() function. The AWS ALB verifier reads both signer and kid from the unverified JWT header. If signer matches the configured ARN, kid is appended to alb_base_url without URL encoding or path sanitization, and the HTTP GET is issued before signature verification. This allows an attacker to force the server to send a GET request to an attacker-chosen internal path.

This issue was fixed in version 2.3.0

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
C library used by Apache/nginx OAuth2 modules in enterprise setups
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

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Vendor StatusVendor

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