/

CVE-2026-45574

Severity:

HIGH RISK

(8.1)

Improper Certificate Validation in epa4all-client for

CVE-2026-45574

Deferred

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Man-in-the-Middle Interception of Encrypted Traffic

Severity:

HIGH RISK

(8.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 certificate validation flaw in epa4all-client allows an on-path attacker to present arbitrary certificates—including self-signed, expired, or with incorrect common names—and still establish a connection.

Under these conditions, an attacker can intercept and read all SOAP traffic between the ePA service and the Konnektor, exposing sensitive identifiers, document contents, and credential exchanges.

Affected context

The vulnerability affects deployments using epa4all-client as the Java client for ePA 3.0 within the Telematik Infrastruktur where it initiates TLS-protected SOAP connections to the Konnektor.

It becomes relevant when:

  • The client relies on TLS for confidentiality and integrity of SOAP messages
  • Network paths between the ePA service and the Konnektor traverse infrastructure that could be controlled, monitored, or influenced by intermediaries (e.g., shared networks, internal segments, or ISP paths)
  • Additional outbound network controls are not enforcing strict certificate pinning or mutual TLS verification at another layer

In such environments, the trust placed in TLS is undermined if certificate checks are incomplete or incorrectly implemented.

Exploit preconditions

  • Attack surface: Network path between the ePA service (client) and the Konnektor (server), specifically TLS-secured SOAP endpoints.
  • Required access: Ability for the attacker to position themselves as a man-in-the-middle (MITM), for example by:
  • Controlling a router, proxy, or gateway on the traffic path
  • Operating a malicious Wi-Fi access point or network segment
  • Leveraging DNS or routing manipulation to redirect traffic
  • Trigger point: The epa4all-client initiates a TLS connection to what it believes is the legitimate Konnektor endpoint, but actually connects to the attacker-controlled server presenting an arbitrary TLS certificate.
  • Why exploitation is possible: The client's TLS stack does not properly validate the server certificate chain and/or hostname.

As a result, certificates that are self-signed, expired, issued for a different CN/hostname, or otherwise invalid can still be accepted, enabling transparent interception and decryption of application-layer SOAP traffic.

Why this happens

The underlying bug class is improper TLS certificate validation, corresponding to CWE-295.

Instead of enforcing full X.509 validation rules—including signature chain verification against trusted roots, revocation status, expiry, and host name binding—the client either disables checks, uses a permissive trust manager/hostname verifier, or misconfigures the TLS context such that invalid certificates are accepted.

Abstractly, this pattern occurs when:

  • Client code introduces custom trust managers or hostname verifiers that "accept all" certificates.
  • TLS configuration bypasses or relaxes certificate and hostname checks for convenience, testing, or compatibility.
  • Assumptions are made that "TLS is present" without verifying that the peer is authenticated according to established PKI policies.

This breaks the authentication guarantee of TLS and converts what should be an authenticated, confidential channel into an unauthenticated encrypted tunnel vulnerable to MITM attacks.

Potential impact

  • Interception and decryption of SOAP traffic between the ePA service and the Konnektor.
  • Exposure of patient identifiers (e.g., KVNR) and other sensitive metadata.
  • Observation or manipulation of SMC-B card operations, including authentication and signing workflows.
  • Disclosure of document contents transmitted via SOAP messages.
  • Capture of credential exchanges or session-related secrets that could be reused in subsequent attacks.
  • Undetectable modification or injection of SOAP messages, potentially impacting integrity of medical or administrative workflows.
  • Erosion of trust in the overall Telematik Infrastruktur communication model if attackers can impersonate Konnektor endpoints.

General mitigation guidance

Mitigation focuses on enforcing strict TLS server authentication and reducing reliance on implicitly trusted network paths:

  • Ensure that TLS clients perform complete X.509 validation, including:
  • Verification of the certificate chain against a trusted root store.
  • Check of certificate validity periods and revocation status according to policy.
  • Strict hostname verification, binding the endpoint's DNS name to the certificate's subject or subject alternative names.
  • Avoid custom "trust-all" trust managers, permissive hostname verifiers, or testing modes that relax TLS checks; instead, use well-reviewed, secure-by-default TLS libraries and configurations.
  • Consider implementing certificate pinning or constrained trust (e.g., pinning to specific CA hierarchies) for highly sensitive services such as ePA/Konnektor endpoints.
  • Separate environments for development and production so that relaxed TLS settings cannot accidentally migrate into production deployments.
  • Apply least-privilege and defense-in-depth controls on network infrastructure (e.g., segmentation, authenticated proxies) so that a compromised node does not automatically provide MITM capability for all traffic.

How teams detect issues like this

Detection approaches typically combine code-level analysis with runtime monitoring:

  • Static analysis and code review:
  • Search for custom TrustManager or hostname verifier implementations that skip checks, return success unconditionally, or log warnings instead of failing connections.
  • Identify TLS client configuration that explicitly disables hostname verification or uses deprecated/legacy security modes.
  • Enforce policies in code review that prohibit "accept all certificates" patterns or hard-coded test shortcuts in production paths.
  • Automated scanning and linting:
  • Use static analysis tools or linters configured with rules for CWE-295 to flag improper certificate validation patterns.
  • Integrate security-focused checks into CI pipelines so regressions are caught before deployment.
  • Runtime and operational monitoring:
  • Analyze TLS handshake logs to ensure connections terminate with expected CAs and certificate attributes.
  • Monitor for connections accepting certificates with mismatched CN/SAN, invalid dates, or non-approved issuers where possible.
  • Periodically perform controlled penetration tests or red-team exercises that attempt MITM to validate that certificate validation is effective.

Sources

SourceLink
github.comgithub.com/oviva-ag/epa4all-client/pull/36
github.comgithub.com/oviva-ag/epa4all-client/security/advisories/GHSA-5hhf-xmfx-4vvr

Frequently asked

questions

Exploitability is limited to scenarios where an attacker can position themselves on the network path between the ePA service and the Konnektor.

In environments where that path traverses shared or less-controlled infrastructure, such as ISP networks, Wi-Fi, or internal segments without strong segmentation, the practical exposure can be significant.

No direct application credentials are required.

The primary requirement is network positioning that enables man-in-the-middle control or traffic interception; once in that position, the attacker can present arbitrary TLS certificates to the vulnerable client.

The most robust fix pattern is to enforce strict, standards-compliant TLS certificate validation using secure-by-default libraries, including full chain validation and strict hostname verification.

Avoid custom or relaxed trust managers, and align certificate validation behavior with organizational PKI policies and the expectations of the underlying infrastructure (such as the Telematik Infrastruktur).

Prevention strategies include adopting security baselines for TLS configuration, mandating the use of vetted TLS client abstractions, and prohibiting insecure shortcuts (e.g., "trust all certificates") through coding standards and CI checks.

Regular security reviews, automated static analysis for CWE-295, and clear separation of development/test configurations from production deployments further reduce the likelihood of reintroducing this class of issue.

Find out what's already
exploitable in your codebase.