{"id":"CVE-2023-41329","published":"2023-09-06T20:34:46Z","modified":"2024-09-26T15:12:14Z","title":"Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio","vendor":"wiremock","product":"wiremock","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00629,"percentile":0.51089,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/wiremock/wiremock/security/advisories/GHSA-pmxq-pj47-j8j4","tags":["x_refsource_CONFIRM"]},{"url":"https://wiremock.org/docs/configuration/#preventing-proxying-to-and-recording-from-specific-target-addresses","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":10.22},{"name":"CVSS severity","points":2.73}]},"vendorSlug":"wiremock","affectedVersions":[{"vendor":"wiremock","product":"wiremock","versions":["org.wiremock:wiremock: < 3.0.3","org.wiremock:wiremock-standalone: < 3.0.3","com.tomakehurst.wiremock:wiremock-jre8: < 2.35.1","com.tomakehurst.wiremock:wiremock-jre8-standalone: < 2.35.1","pypi: wiremock: < 2.6.1","wiremock/wiremock: < 2.35.1-1","wiremock/wiremock: >= 3.0.0, < 3.0.3-1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-26T14:43:46.233892Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.wiremock:wiremock-standalone","vulnerableRanges":["<3.0.3"],"patched":["3.0.3"],"from":["GHSA-pmxq-pj47-j8j4"],"provenance":"source"},{"ecosystem":"Maven","package":"org.wiremock:wiremock","vulnerableRanges":["<3.0.3"],"patched":["3.0.3"],"from":["GHSA-pmxq-pj47-j8j4"],"provenance":"source"},{"ecosystem":"Maven","package":"com.github.tomakehurst:wiremock-jre8","vulnerableRanges":["<2.35.1"],"patched":["2.35.1"],"from":["GHSA-pmxq-pj47-j8j4"],"provenance":"source"},{"ecosystem":"Maven","package":"com.github.tomakehurst:wiremock-jre8-standalone","vulnerableRanges":["<2.35.1"],"patched":["2.35.1"],"from":["GHSA-pmxq-pj47-j8j4"],"provenance":"source"},{"ecosystem":"PyPI","package":"wiremock","vulnerableRanges":["<2.6.1"],"patched":["2.6.1"],"from":["GHSA-pmxq-pj47-j8j4","PYSEC-2026-2050"],"provenance":"source"}],"summary":{"text":"WireMock and WireMock Studio's proxy mode, when its network restrictions are configured with domain names, can have those restrictions bypassed through a DNS rebinding race condition: a DNS record that expires between the initial validation and the outbound request can redirect traffic to a prohibited destination. Exploiting this requires control over a DNS service, an adjacent network position (AV:A), high attack complexity, high privileges, and no user interaction, and the resulting impact is limited to low confidentiality, integrity, and availability effects.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:28Z"},"euvd":{"id":"EUVD-2023-2564","exploited":false,"provenance":"source"}}