CVE-2026-48021 Overview
CVE-2026-48021 is a critical certificate validation flaw in epa4all, a client library used to communicate with the German electronic patient record (ePA) backend. Prior to version 2026-05-20, an attacker positioned to intercept the TLS connection between epa4all and the ePA backend can complete the VAU (Vertrauenswürdige Ausführungsumgebung) handshake using attacker-controlled keys. This gives the attacker the session encryption keys used to protect inner HTTP traffic. The exposed traffic includes patient consent decisions, medication data, document operations, authorization tokens, and entitlement queries. The vulnerability is classified under CWE-295: Improper Certificate Validation.
Critical Impact
An on-path attacker can decrypt and modify all inner HTTP traffic between epa4all and the ePA backend, exposing patient health data, authorization tokens, and enabling request injection through the hijacked channel.
Affected Products
- epa4all versions prior to 2026-05-20
- Deployments interacting with the ePA (elektronische Patientenakte) backend using the VAU protocol
- Downstream applications embedding vulnerable epa4all builds
Discovery Timeline
- 2026-07-24 - CVE-2026-48021 published to NVD
- 2026-07-30 - Last updated in NVD database
Technical Details for CVE-2026-48021
Vulnerability Analysis
The flaw resides in how epa4all validates the peer during the VAU handshake. VAU is designed to establish an end-to-end encrypted channel inside the outer TLS tunnel, terminating within a trusted execution environment at the ePA backend. Because epa4all does not correctly verify the identity or certificate binding of the VAU endpoint, an attacker who already sits between the client and the backend can substitute their own key material. The client completes the handshake with the attacker, negotiating session keys the attacker controls. From that point, the attacker acts as a full man-in-the-middle for the inner protocol, decrypting requests, altering payloads, and injecting new requests that appear legitimate to both sides.
Root Cause
The underlying issue is improper certificate validation [CWE-295] during the VAU handshake. The client accepts handshake parameters without binding them to a trusted VAU instance certificate, allowing arbitrary keys to be used to complete key agreement.
Attack Vector
Exploitation requires an attacker with the ability to intercept network traffic between the epa4all client and the ePA backend. This includes compromised intermediate infrastructure, hostile Wi-Fi, rogue reverse proxies, or DNS redirection paths. No user interaction and no authentication are needed. Once interception is achieved, the attacker completes the VAU handshake with attacker-controlled keys, obtains session encryption keys, and then reads, modifies, or injects inner HTTP requests carrying patient data and authorization tokens.
No verified proof-of-concept code has been published. See the GitHub Security Advisory GHSA-vvh7-x6c7-46gh and the Machine Spirits Advisory for the technical write-up.
Detection Methods for CVE-2026-48021
Indicators of Compromise
- Unexpected TLS termination points or intermediate proxies on the path between epa4all hosts and the ePA backend.
- VAU handshake sessions completing against endpoints whose certificates do not chain to the expected ePA trust anchors.
- Anomalous outbound connections from epa4all deployments to IP addresses outside the documented ePA backend ranges.
Detection Strategies
- Inventory all epa4all installations and confirm the running version against 2026-05-20 or later.
- Inspect application logs for repeated VAU handshake retries, session key rotations, or unexpected certificate identifiers.
- Correlate authorization token usage with source hosts to spot tokens replayed from unexpected origins.
Monitoring Recommendations
- Alert on egress connections from epa4all clients to any host outside the approved ePA backend allowlist.
- Monitor for TLS certificate changes on the ePA backend path using certificate pinning telemetry.
- Track version drift across epa4all deployments and flag hosts remaining on pre-2026-05-20 builds.
How to Mitigate CVE-2026-48021
Immediate Actions Required
- Upgrade epa4all to version 2026-05-20 or later on every host that communicates with the ePA backend.
- Rotate any authorization tokens, session credentials, or entitlement material that may have transited a vulnerable client.
- Review network paths between epa4all clients and the ePA backend for unauthorized interception points.
Patch Information
The issue is fixed in epa4all version 2026-05-20. Release notes and the patched build are available in the epa4all GitHub Release. The upstream security advisory is published as GHSA-vvh7-x6c7-46gh.
Workarounds
- Restrict epa4all egress to a strict allowlist of documented ePA backend endpoints until patching is complete.
- Terminate outbound traffic through a controlled forward proxy that enforces certificate pinning to the ePA backend.
- Isolate systems that cannot be immediately upgraded and suspend processing of sensitive ePA workflows on those hosts.
# Verify installed epa4all version and update to the patched release
git -C /opt/epa4all describe --tags
git -C /opt/epa4all fetch --tags
git -C /opt/epa4all checkout 2026-05-20
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

