MEDIUM4.3
GHSA-jh3w-6jp2-vqqm
Missing permission check of canView in GridFieldPrintButton
Quick fix
GHSA-jh3w-6jp2-vqqm — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.12.5Details
The GridField print view incorrectly validates the permission of DataObjects potentially allowing a content author to view records they are not authorised to access.
Upgrade to `silverstripe/framework` 4.12.5 or above to address the issue.
Reported by Stephan Bauer from [relaxt Webdienstleistungsagentur GmbH](https://www.relaxt.at/)
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
0Fixed in: 4.12.5Fix
composer require silverstripe/framework:^4.12.5References
- https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-jh3w-6jp2-vqqm[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2023-22728[ADVISORY]
- https://github.com/silverstripe/silverstripe-framework/commit/fd5d8217e83768d7bf841e94b2d4d82642d5bc58[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2023-22728.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/cve-2023-22728[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"]}'