Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-2act-yfey-vfgf
Summary
org.xwiki.platform:xwiki-platform-oldcore allows SQL injection in short form select requests through the script query API
### Impact

It is possible for a user with SCRIPT right to escape from the HQL execution context and perform a blind SQL injection to execute arbitrary SQL statements on the database backend.

Depending on the used database backend, the attacker may be able to not only obtain confidential information such as password hashes from the database, but also execute UPDATE/INSERT/DELETE queries.

The vulnerability may be tested in a default installation of XWIki Standard Flavor, including using the official Docker containers.

For example, with a MySQL or MariaDB database, you can use the following script (which a user having SCRIPT right but not PROGRAMMING right) to get the content of the xwikistrings table (which contain all the short string fields stored in objects, including passwords):

```
{{velocity}}
$services.query.hql("where 1<>'1\'' union select concat(XWS_NAME, XWS_VALUE) from xwikistrings #'").execute()
{{/velocity}}
```

### Patches

This has been patched in 16.10.1, 16.4.6 and 15.10.16.

### Workarounds

There is no known workaround, other than upgrading XWiki.

The protection added to this REST API is the same as the one used to validate complete select queries, making it more consistent. However, while the script API always had this protection for complete queries, it's important to note that it's a very strict protection and some valid, but complex, queries might suddenly require the author to have programming right.

### References

https://jira.xwiki.org/browse/XWIKI-22718

### For more information

If you have any questions or comments about this advisory:
* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)
* Email us at [Security Mailing List](mailto:security@xwiki.org)
Aliases
0
alias CVE-2025-32968
1
alias GHSA-g9jj-75mx-wjcx
Fixed_packages
0
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@15.10.16
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@15.10.16
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@15.10.16
1
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.4.6
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.4.6
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.4.6
2
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.10.1
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.10.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.10.1
Affected_packages
0
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@1.6-milestone-1
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@1.6-milestone-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2act-yfey-vfgf
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@1.6-milestone-1
1
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.0.0-rc-1
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.0.0-rc-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2act-yfey-vfgf
1
vulnerability VCID-f872-dkzj-ufac
2
vulnerability VCID-q2b9-583a-9yd9
3
vulnerability VCID-zv2f-hpz1-ruba
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.0.0-rc-1
2
url pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.5.0-rc-1
purl pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.5.0-rc-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2act-yfey-vfgf
1
vulnerability VCID-3m9j-nt38-x3hq
2
vulnerability VCID-4n2t-crsf-87gr
3
vulnerability VCID-f872-dkzj-ufac
4
vulnerability VCID-p59s-q94b-9kb6
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-oldcore@16.5.0-rc-1
References
0
reference_url https://api.first.org/data/v1/epss?cve=CVE-2025-32968
reference_id
reference_type
scores
0
value 0.0091
scoring_system epss
scoring_elements 0.75763
published_at 2026-04-07T12:55:00Z
1
value 0.0091
scoring_system epss
scoring_elements 0.75784
published_at 2026-04-04T12:55:00Z
2
value 0.0091
scoring_system epss
scoring_elements 0.75796
published_at 2026-04-08T12:55:00Z
3
value 0.0091
scoring_system epss
scoring_elements 0.75871
published_at 2026-04-24T12:55:00Z
4
value 0.0091
scoring_system epss
scoring_elements 0.75833
published_at 2026-04-21T12:55:00Z
5
value 0.0091
scoring_system epss
scoring_elements 0.75848
published_at 2026-04-18T12:55:00Z
6
value 0.0091
scoring_system epss
scoring_elements 0.75844
published_at 2026-04-16T12:55:00Z
7
value 0.0091
scoring_system epss
scoring_elements 0.75806
published_at 2026-04-13T12:55:00Z
8
value 0.0091
scoring_system epss
scoring_elements 0.75812
published_at 2026-04-12T12:55:00Z
9
value 0.0091
scoring_system epss
scoring_elements 0.75752
published_at 2026-04-02T12:55:00Z
10
value 0.0091
scoring_system epss
scoring_elements 0.75831
published_at 2026-04-11T12:55:00Z
11
value 0.0091
scoring_system epss
scoring_elements 0.75808
published_at 2026-04-09T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2025-32968
1
reference_url https://github.com/xwiki/xwiki-platform
reference_id
reference_type
scores
0
value 8.6
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/xwiki/xwiki-platform
2
reference_url https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g9jj-75mx-wjcx
reference_id
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
1
value 8.6
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
2
value HIGH
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2025-04-23T16:17:37Z/
url https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-g9jj-75mx-wjcx
3
reference_url https://jira.xwiki.org/browse/XWIKI-22718
reference_id
reference_type
scores
0
value 8.6
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2025-04-23T16:17:37Z/
url https://jira.xwiki.org/browse/XWIKI-22718
4
reference_url https://nvd.nist.gov/vuln/detail/CVE-2025-32968
reference_id
reference_type
scores
0
value 8.6
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2025-32968
5
reference_url https://github.com/advisories/GHSA-g9jj-75mx-wjcx
reference_id GHSA-g9jj-75mx-wjcx
reference_type
scores
0
value HIGH
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-g9jj-75mx-wjcx
Weaknesses
0
cwe_id 89
name Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
description The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
1
cwe_id 937
name OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013.
2
cwe_id 1035
name OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
description Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017.
Exploits
Severity_range_score7.0 - 8.9
Exploitability0.5
Weighted_severity8.0
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-2act-yfey-vfgf