CVE-2023-41329
Domain restrictions bypass via DNS Rebinding in WireMock and WireMock Studio
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Low3.9 | CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | Medium6.6 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.63% · top 50% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.9.
Weakness
Affected products
- affected org.wiremock:wiremock: < 3.0.3
- affected org.wiremock:wiremock-standalone: < 3.0.3
- affected com.tomakehurst.wiremock:wiremock-jre8: < 2.35.1
- affected com.tomakehurst.wiremock:wiremock-jre8-standalone: < 2.35.1
- affected pypi: wiremock: < 2.6.1
- affected wiremock/wiremock: < 2.35.1-1
- affected wiremock/wiremock: >= 3.0.0, < 3.0.3-1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavencom.github.tomakehurst:wiremock-jre8GHSA-pmxq-pj47-j8j4 (opens in a new tab)
- Mavencom.github.tomakehurst:wiremock-jre8-standaloneGHSA-pmxq-pj47-j8j4 (opens in a new tab)
- Mavenorg.wiremock:wiremockGHSA-pmxq-pj47-j8j4 (opens in a new tab)
- Mavenorg.wiremock:wiremock-standaloneGHSA-pmxq-pj47-j8j4 (opens in a new tab)
- PyPIwiremockGHSA-pmxq-pj47-j8j4 (opens in a new tab)
References (2)
- https://github.com/wiremock/wiremock/security/advisories/GHSA-pmxq-pj47-j8j4 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://wiremock.org/docs/configuration/#preventing-proxying-to-and-recording-from-specific-target-addresses (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-pmxq-pj47-j8j4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2023-41329)Record last updated .