CVE-2022-45968 AList vulnerable to Improper Preservation of Permissions

High 8.8 Published Updated

An attacker with file upload permissions can upload arbitrary files to any folder, potentially leading to code execution or data modification.

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-2022-45968?

CVE-2022-45968 is a high-severity vulnerability in n/a, published on 12 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Alist v3.4.0 is vulnerable to File Upload. A user with only file upload permission can upload any file to any folder (even a password protected one).

Weakness: CWE-434

Which versions are affected by CVE-2022-45968?

4 open source packages ship an affected version, including github.com/alist-org/alist/v3 and github.com/alist-org/alist. It affects 1 product.

PackageAffectedFixed in
github.com/alist-org/alist/v3 GoAll versions3.5.1
github.com/alist-org/alist/v3 GoAll versions3.5.1
github.com/alist-org/alist/v3 GoAll versions3.5.1
github.com/alist-org/alist GoAll versionsNone

Products include Alistgo Alist.

How do I fix CVE-2022-45968?

Upgrade github.com/alist-org/alist/v3 to 3.5.1 or later.

Is CVE-2022-45968 being exploited?

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

Sources

Also known as GHSA-4gjr-vgfx-9qvw, GO-2022-1161.

Is CVE-2022-45968 in your software?

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

Check your SBOMs for free