High, CVSS 7.1MavenPublished
CC-Tweaked has an SSRF Protection Bypass with NAT64
CVE-2026-47695 · GHSA-5jh9-2h63-pw4q
- Affected
- Maven cc.tweaked:cc-tweaked-1.19.3-core < 1.119.0
- Fixed in
- 1.119.0· Vendor fix available
- Issue
- CC-Tweaked's HTTP API (http.request, http.websocket) blocks requests to private network ranges to prevent server-side request forgery (SSRF). This protection can be bypassed on IPv6-capable servers using NAT64 well-known prefix addresses (64:ff9b::/96). An attacker who can execute Lua code can reach any internal IPv4 service that the filter is intended to block, by addressing it as http://[64:ff9b::<ipv4-as-hex]/ instead of its direct IPv4 address. This affects any CC-Tweaked deployment on a network with NAT64 routing — a configuration that is standard on AWS, GCP, and other cloud platforms when using IPv6-only subnets. Details The IP filter in PrivatePattern.matches() (AddressPredicate.java#L121–L130) blocks private network ranges by calling Java's standard InetAddress classification methods: When a NAT64 address such as 64:ff9b::c0a8:0101 (encoding 192.168.1.1) is resolved via new InetSocketAddress("64:ff9b::c0a8:0101", 80), Java returns an Inet6Address. Every method above…
Recommended action: Upgrade to 1.119.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.