CVE-2023-39584 Hexo `include_code` has a path traversal

High 7.5 Published Updated

An attacker can read arbitrary files from the server using Hexo, potentially exposing sensitive information.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-39584?

CVE-2023-39584 is a high-severity path traversal vulnerability in n/a, published on 8 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Hexo up to v7.0.0 (RC2) was discovered to contain an arbitrary file read vulnerability.

Weakness: CWE-22

Which versions are affected by CVE-2023-39584?

2 open source packages ship an affected version, including hexo. It affects 1 product.

PackageAffectedFixed in
hexo npmAll versions7.2.0
hexo npmAll versions7.2.0

Products include Hexo Hexo.

How do I fix CVE-2023-39584?

Upgrade hexo to 7.2.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-39584 being exploited?

There is no known exploitation of CVE-2023-39584 in the wild and no public exploit code.

Sources

Also known as GHSA-x2jc-989c-47q4.

Is CVE-2023-39584 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free