CVE-2020-5840 HashBrown CMS Directory Traversal
An attacker can access files outside the intended directory in HashBrown CMS by manipulating name or ID fields, potentially exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-5840?
CVE-2020-5840 is a high-severity path traversal vulnerability in n/a, published on 6 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in HashBrown CMS before 1.3.2. Server/Entity/Resource/Connection.js allows an attacker to reach a parent directory via a crafted name or ID field.
Weakness: CWE-22
Which versions are affected by CVE-2020-5840?
2 open source packages ship an affected version, including hashbrown-cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hashbrown-cms npm | All versions | 1.3.2 |
hashbrown-cms npm | All versions | 1.3.2 |
Products include Hashbrowncms Hashbrown Cms.
How do I fix CVE-2020-5840?
Upgrade hashbrown-cms to 1.3.2 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-5840 being exploited?
There is no known exploitation of CVE-2020-5840 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-q7hx-mrv5-6mrp.