TOCTOU Vulnerability in JDK DNS Cache Allows Bypassing Network Deny-lists

TOCTOU Vulnerability in JDK DNS Cache Allows Bypassing Network Deny-lists

CVE-2023-26438 · LOW Severity

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

External service lookups for a number of protocols were vulnerable to a time-of-check/time-of-use (TOCTOU) weakness, involving the JDK DNS cache. Attackers that were timing DNS cache expiry correctly were able to inject configuration that would bypass existing network deny-lists. Attackers could exploit this weakness to discover the existence of restricted network infrastructure and service availability. Improvements were made to include deny-lists not only during the check of the provided connection data, but also during use. No publicly available exploits are known.

Learn more about our Infrastructure Penetration Testing.