CVE-2023-41329
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.wiremock:wiremock-standaloneMaven | < 3.0.3 | 3.0.3 |
org.wiremock:wiremockMaven | < 3.0.3 | 3.0.3 |
com.github.tomakehurst:wiremock-jre8Maven | < 2.35.1 | 2.35.1 |
com.github.tomakehurst:wiremock-jre8-standaloneMaven | < 2.35.1 | 2.35.1 |
wiremockPyPI | < 2.6.1 | 2.6.1 |
Affected products
7- osv-coords6 versionspkg:bitnami/wiremockpkg:maven/com.github.tomakehurst/wiremock-jre8pkg:maven/com.github.tomakehurst/wiremock-jre8-standalonepkg:maven/org.wiremock/wiremockpkg:maven/org.wiremock/wiremock-standalonepkg:pypi/wiremock
< 2.35.1+ 5 more
- (no CPE)range: < 2.35.1
- (no CPE)range: < 2.35.1
- (no CPE)range: < 2.35.1
- (no CPE)range: < 3.0.3
- (no CPE)range: < 3.0.3
- (no CPE)range: < 2.6.1
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-pmxq-pj47-j8j4ghsaADVISORY
- github.com/wiremock/wiremock/security/advisories/GHSA-pmxq-pj47-j8j4nvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2023-41329ghsaADVISORY
- wiremock.org/docs/configuration/nvdProductWEB
News mentions
0No linked articles in our index yet.