CVE-2024-24756 Crafatar path traversal vulnerability
Attackers can read files outside the public directory in Crafatar instances, potentially exposing container contents, though cloud-hosted instances are unaffected.
- 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-2024-24756?
CVE-2024-24756 is a high-severity path traversal vulnerability in crafatar, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Crafatar serves Minecraft avatars based on the skin for use in external applications. Files outside of the `lib/public/` directory can be requested from the server. Instances running behind Cloudflare (including crafatar.com) are not affected. Instances using the Docker container as shown in the README are affected, but only files within the container can be read. By default, all of the files within the container can also be found in this repository and are not confidential. This vulnerability is patched in 2.1.5.
Weakness: CWE-22
Which versions are affected by CVE-2024-24756?
It affects 1 product.
Products include Crafatar Crafatar.
How do I fix CVE-2024-24756?
No fix has been published for CVE-2024-24756 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-24756 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24756 exists.
Sources
Also known as GHSA-5cxq-25mp-q5f2.