/

CVE-2026-48021

Severity:

CRITICAL RISK

(9.1)

TLS Trust Failure (CWE-295) in epa4all VAU Handshake

CVE-2026-48021

Deferred

Vulnerability type

Category:

Transport Layer Authentication and Integrity Failure

CWE:

CWE-295, CWE-347

Impact:

Confidentiality and Integrity Compromise of Encrypted Session

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A TLS trust failure in epa4all's VAU handshake lets an active network attacker terminate and re-establish the protected channel using attacker-controlled keys.

When the TLS connection to the ePA backend is intercepted, all inner HTTP traffic, including sensitive medical and authorization data, can be read, modified, and augmented with arbitrary injected requests.

Affected context

The vulnerability appears in epa4all's interaction with the ePA backend, specifically during the VAU handshake that establishes encrypted channels for inner HTTP traffic.

It becomes relevant in deployments where epa4all relies on TLS and VAU for securing medical data, consent records, and authorization tokens, but does not fully validate the authenticity or integrity of the cryptographic keys and certificates used in the handshake.

The issue manifests when an attacker can act as a man-in-the-middle on the network path between epa4all and the backend, influencing the key exchange without being detected.

Exploit preconditions

  • Attack surface: Network path between an epa4all client/service and the ePA backend.
  • Required access: Capability to intercept, redirect, or proxy TLS traffic (e.g., on-path attacker, compromised gateway, or malicious Wi-Fi AP).
  • Trigger point: VAU handshake initiation, where session encryption keys are negotiated for inner HTTP traffic.
  • Why exploitation is possible: The VAU handshake does not sufficiently enforce server and key authenticity (CWE-295) or cryptographic signature validation (CWE-347), allowing an attacker to complete the handshake with their own keys and obtain the effective session encryption material.

Why this happens

At its core, this issue stems from incomplete or incorrect validation of the cryptographic entities used in the VAU handshake.

The implementation fails to ensure that the remote endpoint and its cryptographic keys are tied to a trusted identity, and that signatures and certificates are robustly verified against an expected trust anchor and policy.

This aligns with CWE-295: Improper Certificate Validation, where TLS or similar protocols are treated as secure without enforcing strict authenticity checks, and CWE-347: Improper Verification of Cryptographic Signature, where signatures or key material are accepted without fully validating their origin and integrity.

This abstract pattern is the use of transport-level encryption that assumes secrecy while omitting rigorous trust and verification steps, allowing an active attacker to terminate, re-establish, and control the encrypted channel.

Potential impact

  • Attacker may obtain session encryption keys for VAU-protected traffic.
  • Attacker could read all inner HTTP traffic, including patient consent decisions and medication data.
  • Attacker may modify document operations and entitlement queries in transit.
  • Attacker could inject arbitrary requests into the hijacked channel to manipulate backend state.
  • Attacker can potentially harvest authorization tokens for further misuse or impersonation.

General mitigation guidance

Effective mitigation generally depends on tightening transport-level trust and cryptographic validation rather than relying on encryption alone.

Recommended design patterns include:

  • Enforcing strict certificate pinning or well-defined trust stores for the ePA backend, so endpoints and public keys must match expected identities.
  • Validating all cryptographic signatures and key exchanges during the VAU handshake against a hardened policy, rejecting any untrusted or unexpected key material.
  • Designing the handshake so that only keys derived from an authenticated, non-modifiable trust chain can be used to protect inner HTTP traffic.
  • Segmenting backend privileges so that even if a transport channel is compromised, downstream services operate with least privilege and minimize sensitive operations per request.
  • Applying defense-in-depth by validating critical medical and consent actions at the application layer (e.g., re-authentication steps, contextual checks) independent of transport assumptions.

How teams detect issues like this

High-level detection approaches focus on both code-level assurance and runtime monitoring:

  • Static analysis rules that flag custom TLS or VAU handshake logic which bypasses or weakens certificate, hostname, or signature validation.
  • Code review practices that inspect any cryptographic verification paths, looking for hard-coded bypasses, disabled validation checks, or incomplete hostname and chain verification.
  • Policy enforcement that mandates use of well-maintained cryptographic libraries and prohibits ad-hoc key acceptance logic or optional signature checks.
  • Runtime monitoring for anomalies such as unexpected certificate chains, changes in backend public keys, or unusual patterns of session key negotiation.
  • Automated security review tools integrated into CI/CD pipelines to check configuration and code for deviations from organizational TLS and PKI policies.

Sources

SourceLink
github.comgithub.com/med-united/epa4all/releases/tag/2026-05-20
github.comgithub.com/med-united/epa4all/security/advisories/GHSA-vvh7-x6c7-46gh
machinespirits.commachinespirits.com/advisory/aa49f0

Frequently asked

questions

Yes. It is exploitable by an attacker who can act as an on-path adversary between epa4all and the ePA backend, such as on a compromised local network or gateway. The attacker must be able to intercept and influence the TLS/VAU handshake traffic.

The attacker needs network-level access to intercept, proxy, or route the TLS connection. They do not require application credentials, but they must control the transport path to terminate and re-establish the VAU handshake with their own keys.

The most robust fix pattern is to enforce strict certificate and key validation for all secure channels: use trusted roots, verify full chains and hostnames, pin expected backend identities where appropriate, and require complete cryptographic signature verification during any handshake that derives session keys.

Long-term prevention relies on treating secure transport as a rigorously verified subsystem: adopt mature TLS and cryptographic libraries, codify PKI and signature validation policies, prohibit custom handshake shortcuts, and continuously test and audit secure-channel logic through code review, security testing, and automated checks.

Find out what's already
exploitable in your codebase.