CVE-2021-46897 Wagtail CRX CodeRed Extensions vulnerable to Path Traversal
Attackers can bypass protection to read protected media files via path traversal in the Wagtail CRX extension.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-46897?
CVE-2021-46897 is a medium-severity path traversal vulnerability in n/a, published on 22 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
views.py in Wagtail CRX CodeRed Extensions (formerly CodeRed CMS or coderedcms) before 0.22.3 allows upward protected/..%2f..%2f path traversal when serving protected media.
Weakness: CWE-22
Which versions are affected by CVE-2021-46897?
3 open source packages ship an affected version, including coderedcms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
coderedcms PyPI | All versions | 0.22.3 |
coderedcms PyPI | All versions | 0.22.3 |
coderedcms PyPI | All versions | 0.22.3 |
Products include Wagtailcrx Codered Extensions.
How do I fix CVE-2021-46897?
Upgrade coderedcms to 0.22.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-46897 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46897 exists.
Sources
Also known as GHSA-h454-rq3m-89rc, PYSEC-2023-210.