Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio
Overview
WireMock is a tool for mocking HTTP services. The proxy mode of WireMock, can be protected by the network restrictions configuration, as documented in Preventing proxying to and recording from specific target addresses. These restrictions can be configured using the domain names, and in such a case the configuration is vulnerable to the DNS rebinding attacks. A similar patch was applied in WireMock 3.0.0-beta-15 for the WireMock Webhook Extensions. The root cause of the attack is a defect in the logic which allows for a race condition triggered by a DNS server whose address expires in between the initial validation and the outbound network request that might go to a domain that was supposed to be prohibited. Control over a DNS service is required to exploit this attack, so it has high execution complexity and limited impact. This issue has been addressed in version 2.35.1 of wiremock-jre8 and wiremock-jre8-standalone, version 3.0.3 of wiremock and wiremock-standalone, version 2.6.1 of the python version of wiremock, and versions 2.35.1-1 and 3.0.3-1 of the wiremock/wiremock Docker container. Users are advised to upgrade. Users unable to upgrade should either configure firewall rules to define the list of permitted destinations or to configure WireMock to use IP addresses instead of the domain names.
- Published
- 9/6/2023
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
python wiremock wiremock | < 2.6.1 | Verify advisory | Source |
studio wiremock | ≤ 2.32.0-17 | Verify advisory | Source |
wiremock wiremock | < 2.35.1 | Verify advisory | Source |
wiremock wiremock | ≥ 3.0.0, < 3.0.3 | Verify advisory | Source |
wiremock docker wiremock | ≥ 2.0.0, < 2.35.1-1 | Verify advisory | Source |
wiremock docker wiremock | ≥ 3.0.0, < 3.0.3-1 | Verify advisory | Source |
wiremock wiremock | org.wiremock:wiremock: < 3.0.3 | Verify advisory | Source |
wiremock wiremock | org.wiremock:wiremock-standalone: < 3.0.3 | Verify advisory | Source |
wiremock wiremock | com.tomakehurst.wiremock:wiremock-jre8: < 2.35.1 | Verify advisory | Source |
wiremock wiremock | com.tomakehurst.wiremock:wiremock-jre8-standalone: < 2.35.1 | Verify advisory | Source |
wiremock wiremock | pypi: wiremock: < 2.6.1 | Verify advisory | Source |
wiremock wiremock | wiremock/wiremock: < 2.35.1-1 | Verify advisory | Source |
wiremock wiremock | wiremock/wiremock: >= 3.0.0, < 3.0.3-1 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 6.6. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.