CVE-2025-54872 onion-site-template tor Secrets Baked Into Image
Attackers can compromise websites by accessing hardcoded Tor secrets in the onion-site-template image, leading to unauthorized control and data exposure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-54872?
CVE-2025-54872 is a high-severity vulnerability in Vessel9817 onion-site-template, published on 5 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
onion-site-template is a complete, scalable tor hidden service self-hosting sample. Versions which include commit 3196bd89 contain a baked-in tor image if the secrets were copied from an existing onion domain. A website could be compromised if a user shared the baked-in image, or if someone were able to acquire access to the user's device outside of a containerized environment. This is fixed by commit bc9ba0fd.
Weakness: CWE-798
Which versions are affected by CVE-2025-54872?
How do I fix CVE-2025-54872?
No fix has been published for CVE-2025-54872 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-54872 being exploited?
There is no known exploitation of CVE-2025-54872 in the wild and no public exploit code.
Sources
Also known as GHSA-mj8m-c8w9-rw55.