CVE-2024-32231 SQL injection in github.com/stashapp/stash

Medium 6.3 Published Updated

Attackers can execute arbitrary SQL commands via the sort parameter in Stash, potentially reading or modifying database contents.

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-2024-32231?

CVE-2024-32231 is a medium-severity SQL injection vulnerability in n/a, published on 15 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Stash up to v0.25.1 was discovered to contain a SQL injection vulnerability via the sort parameter.

Weakness: CWE-89

Which versions are affected by CVE-2024-32231?

3 open source packages ship an affected version, including github.com/stashapp/stash. It affects 1 product.

PackageAffectedFixed in
github.com/stashapp/stash GoAll versions0.26.0
github.com/stashapp/stash GoAll versions0.26.0
github.com/stashapp/stash GoAll versions0.26.0

Products include Stashapp Stash.

How do I fix CVE-2024-32231?

Upgrade github.com/stashapp/stash to 0.26.0 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-32231 being exploited?

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

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-75jf-52jg-qqh4, GO-2024-3070.

Is CVE-2024-32231 in your software?

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

Check your SBOMs for free