CVE-2024-12866 Local File Inclusion in netease-youdao/qanything

High 7.5 Published Updated

Attackers can read arbitrary files via local file inclusion, potentially leading to remote code execution by accessing sensitive keys and configurations.

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-12866?

CVE-2024-12866 is a high-severity path traversal vulnerability in netease-youdao/qanything, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A local file inclusion vulnerability exists in netease-youdao/qanything version v2.0.0. This vulnerability allows an attacker to read arbitrary files on the file system, which can lead to remote code execution by retrieving private SSH keys, reading private files, source code, and configuration files.

Weakness: CWE-22

Which versions are affected by CVE-2024-12866?

It affects 1 product.

Products include Youdao Qanything.

How do I fix CVE-2024-12866?

No fix has been published for CVE-2024-12866 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-12866 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12866 exists.

Sources

Also known as GHSA-6ch3-c5vc-j2r6.

Is CVE-2024-12866 in your software?

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

Check your SBOMs for free