libtoxcore — security advisory
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.
- Products
- libtoxcore
- Affected versions
- Not specified
- Fixed versions
- 0.2.2-1
- CVEs
- CVE-2018-25022
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:29 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2018-25022
libtoxcore
Fixed versions: 0.2.2-1
libtoxcore
Fixed versions: 0.2.2-1
libtoxcore
Fixed versions: 0.2.2-1
Complete source record
{
"id": "62ca2b879b7d189b1b6cd21c15c058a8af4057f308b18b557edc425c04a6ed4a",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-25022",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2018-25022",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2018-25022",
"products": [
{
"name": {
"value": "libtoxcore",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.2.2-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libtoxcore",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.2.2-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "libtoxcore",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.2.2-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "DEBIAN-CVE-2018-25022",
"aliases": [
"DEBIAN-CVE-2018-25022"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.2.2-1"
}
]
}
],
"package": {
"name": "libtoxcore",
"purl": "pkg:deb/debian/libtoxcore?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-25022.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.2.2-1"
}
]
}
],
"package": {
"name": "libtoxcore",
"purl": "pkg:deb/debian/libtoxcore?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-25022.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.2.2-1"
}
]
}
],
"package": {
"name": "libtoxcore",
"purl": "pkg:deb/debian/libtoxcore?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-25022.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:21.234497587Z",
"provider": "osv",
"upstream": [
"CVE-2018-25022"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2018-25022"
]
},
"related_cves": [
{
"value": "CVE-2018-25022",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 421259,
"published_at": "2021-12-13T01:15:07.587+00:00"
}