# CVE-2018-25022: libtoxcore: The Onion module in toxcore before 0.2.2 doesn't restrict which packets can be onion-routed, which allows a remote at...

CVE-2018-25022 is fixed in libtoxcore on 1 platform, first by DEBIAN-CVE-2018-25022, released December 13, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-25022
- Priority: Routine
- CVSS: 3.1 (low)
- EPSS: 0.0156
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 13, 2021

## Description

The Onion module in toxcore before 0.2.2 doesn't restrict which packets can be onion-routed, which allows a remote attacker to discover a target user's IP address (when knowing only their Tox Id) by positioning themselves close to target's Tox Id in the DHT for the target to establish an onion connection with the attacker, guessing the target's DHT public key and creating a DHT node with public key close to it, and finally onion-routing a NAT Ping Request to the target, requesting it to ping the just created DHT node.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libtoxcore Debian 12.15 (bookworm) | 0.2.2-1 | [DEBIAN-CVE-2018-25022](https://patchblox.com/security/data/fix/linux/debian-cve-2018-25022.md) | Dec 13, 2021 |
| Linux | libtoxcore Debian 13.5 (trixie) | 0.2.2-1 | [DEBIAN-CVE-2018-25022](https://patchblox.com/security/data/fix/linux/debian-cve-2018-25022.md) | Dec 13, 2021 |
| Linux | libtoxcore Debian 14 | 0.2.2-1 | [DEBIAN-CVE-2018-25022](https://patchblox.com/security/data/fix/linux/debian-cve-2018-25022.md) | Dec 13, 2021 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
