Summary
Apache Axis2/Java could make server-side connections to addresses supplied in WS-Addressing ReplyTo or FaultTo headers. An unauthenticated caller may use this behavior to reach internal hosts and cause response or fault content to be sent to a host they choose.
Affected context
The issue affects Apache Axis2/Java through version 2.0.1 when WS-Addressing decoupled responses are supported. It arises when a caller can provide a non-anonymous ReplyTo or FaultTo address and the server uses that address to deliver a response or fault. The behavior may expose internal network services or disclose response content, depending on the deployment and reachable endpoints.
Exploit preconditions
- Attack surface: A network-accessible Axis2/Java service that processes WS-Addressing headers
- Required access: No authentication is required according to the vulnerability description
- Trigger point: Processing a request with a non-anonymous
ReplyToorFaultToaddress - Why exploitation is possible: The server may open a connection to the supplied address and send a response or fault, allowing the caller to influence the destination
Why this happens
The application uses caller-controlled WS-Addressing destinations when selecting where to send responses or faults. If those destinations are not sufficiently restricted before a server-side connection is made, untrusted input can cause the server to access other network locations. This is CWE-918: Server-Side Request Forgery (SSRF).
Potential impact
- The server could make requests to internal or otherwise unintended hosts.
- An attacker may be able to probe services reachable from the Axis2 host.
- Response or fault content could be delivered to a host selected by the caller.
- Depending on network access and deployment privileges, the issue may contribute to broader service or infrastructure compromise.
General mitigation guidance
Defensive patterns focus on controlling whether and where the server can send decoupled responses.
- Disable non-anonymous response endpoints by default unless they are required.
- If such endpoints are enabled, apply strict scheme, destination, and network-range allowlists.
- Validate destinations consistently both when parsing headers and when selecting a transport.
- Reduce trust in caller-supplied addressing data and avoid forwarding sensitive response content to unverified destinations.
- Restrict outbound network access and run services with only the privileges they need.
How teams detect issues like this
- Review code paths that accept WS-Addressing
ReplyToorFaultTovalues and identify whether caller-controlled destinations can reach outbound connection APIs. - Use static analysis to flag request-derived URLs or endpoints passed to HTTP, socket, or transport clients without destination validation.
- Inspect configuration and policy enforcement to confirm that non-anonymous endpoints are disabled by default or constrained by explicit allowlists.
- Monitor outbound connections from Axis2 services for unexpected destinations, schemes, or internal-network access.
- Automated code review tools can help identify untrusted input flowing into network connection selection.

