# GHSA-G5H5-FP5G-FMX4: $private rule bypass via IPv4-mapped IPv6 (SSRF to loopback, Docker host, LAN, cloud metadata)

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-03
- Modified: 2026-11-03

## Affected versions

- cc.tweaked:cc-tweaked-1.20.1-core (Maven): fixed in 1.121.0
- cc.tweaked:cc-tweaked-1.21.1-core (Maven): fixed in 1.121.0
- cc.tweaked:cc-tweaked-26.3-core (Maven): fixed in 1.121.0

## Description

## Summary
CC: Tweaked blocks the HTTP API from accessing the private network by default. An oversight in how the JVM constructs IP addresses allows bypassing this filter, giving computers access to the private network, including the loopback (127.0.0.1) address.

## Scope and impact
This affects all versions of ComputerCraft and CC: Tweaked since ComputerCraft 1.1[^disabled].

[^disabled]: The HTTP API was disabled by default between ComputerCraft 1.1 and 1.62.

This allows computers to access *all* HTTP-exposed services accessible from your server. This includes (but is not limited to) services configured to only listen on 127.0.0.1, as well as cloud metadata services (e.g. AWS or Azure)[^cloud].

[^cloud]: See https://github.com/cc-tweaked/CC-Tweaked/security/advisories/GHSA-7p4w-mv69-2wm2 and https://github.com/cc-tweaked/CC-Tweaked/discussions/1513 for more details.

Depending on what is reachable from your server, this may allow for unauthorised access to secrets or other sensitive information.

## Mitigation
Due to the scope of this issue, it is recommended to patch (or apply other mitigations) immediately.

This bug is fixed in CC: Tweaked 1.121.0, available for Minecraft 1.20.1, 1.21.1 and 26.3.

This update is incompatible with several mods which interface with CC:T's internals, including Plethora and UnlimitedPeripheralWorks. I'm really sorry about this — CC:T does not currently maintain separate release and development branches, so everything has ended up bundled together. I am hoping to get these mods fixed as soon as possible, but in the mean time, it is recommended to temporarily apply one of the other mitigations.

If your Minecraft version is unsupported, or you are unable to update for other reasons, it is recommended you apply the following:

### Minecraft <1.12
Versions of ComputerCraft prior to the release of Minecraft 1.12/CC: Tweaked do not support for blocking IP addresses. These versions are already vulnerable to other SSRF exploits[^cloud].

If running a public/non-whitelisted Minecraft server, it is recommended to disable the HTTP API by setting `http_enable=false` in `config/computercraft.cfg`.

### Minecraft 1.12.2
Update your `blocked_domains` config to match the following:

```
S:blocked_domains <
  0.0.0.0/8
  10.0.0.0/8
  100.64.0.0/10
  127.0.0.0/8
  169.254.0.0/16
  172.16.0.0/12
  192.0.2.0/24
  192.168.0.0/16
  192.88.99.0/24
  198.18.0.0/15
  198.51.100.0/24
  203.0.113.0/24
  224.0.0.0/4
  ::0/128
  ::1/128
  ::fffe:0:0/95
  2001::/23
  64:ff9b::/96
  64:ff9b:1::/48
  fc00::/7
  fe80::/10
  fec0::/10
  ff00::/8
>
```

### Minecraft >=1.16
Add the following to at the top of your `http.rules` option to your `computercraft-server.toml`, *above* the `host = "$private"` rule.

```toml
        [[http.rules]]
            host = "::fffe:0:0/95"
            action = "deny"
```

This entire section should look *something* like this. Do *not* copy and paste this, as it will vary from version to version:
```toml
[[http.rules]]
        host = "::fffe:0:0/95"
        action = "deny"

[[http.rules]]
        host = "$private"
        action = "deny"

[[http.rules]]
        #The maximum size (in bytes) that a computer can send or receive in one websocket packet.
        max_websocket_message = 131072
        host = "*"
        #The maximum size (in bytes) that a computer can upload in a single request. This
        #includes headers and POST text.
        max_upload = 4194304
        action = "allow"
        #The maximum size (in bytes) that a computer can download in a single request.
        #Note that responses may receive more data than allowed, but this data will not
        #be returned to the client.
        max_download = 16777216
        #The period of time (in milliseconds) to wait before a HTTP request times out. Set to 0 for unlimited.
        timeout = 30000
```

### Other
If unable to apply one of the other solutions. Disabling IPv6 (pass `-Djava.net.preferIPv4Stack=true` when starting the server) or disabling the HTTP API should be sufficient to mitigate this.

## Timeline
 - 1st November 2026: Vulnerability was reported via GitHub's vulnerability reporting system.
 - 1st November 2026: Vulnerability was acknowledged by the CC: Tweaked team. This bug was forwarded to the OC:R team. A patch was committed.
 - 3rd November: Patch was published and update was released. Vulnerability was publicly disclosed.

## References

- https://github.com/cc-tweaked/CC-Tweaked/security/advisories/GHSA-g5h5-fp5g-fmx4

Page: https://cve.now/GHSA-G5H5-FP5G-FMX4

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
