HIGH8.8
GHSA-rr8h-f97q-8p9c
Blind SQL Injection via GridFieldSortableHeader
Quick fix
GHSA-rr8h-f97q-8p9c — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.10.11Details
Gridfield state is vulnerable to SQL injections. The vast majority of Gridfields in Silverstripe CMS are affected by this vulnerability.
An attacker with CMS access could execute an arbitrary SQL statement by adding an SQL payload in some parts of the GridField state.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
4.0.0Fixed in: 4.10.11Fix
composer require silverstripe/framework:^4.10.11Packagist/silverstripe/framework
Introduced in:
4.11.0Fixed in: 4.11.14Fix
composer require silverstripe/framework:^4.11.14References
- https://nvd.nist.gov/vuln/detail/CVE-2022-38148[ADVISORY]
- https://forum.silverstripe.org/c/releases[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2022-38148.yaml[WEB]
- https://www.silverstripe.org/blog/tag/release[WEB]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/CVE-2022-38148[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/framework"]}'