HIGH8.8
GHSA-265q-222x-52m6
silverstripe/framework has potential SQL Injection vulnerability in PostgreSQL database connector
Quick fix
GHSA-265q-222x-52m6 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.0.6Details
A potential SQL injection vulnerability was identified by using the silverstripe/postgresql database adapter. While unlikely to be exploitable, we have patched silverstripe/framework to ensure that table names are safely escaped before being passed to database adapters or user code.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
4.0.0-rc1Fixed in: 4.0.6Fix
composer require silverstripe/framework:^4.0.6Packagist/silverstripe/framework
Introduced in:
4.1.0-rc1Fixed in: 4.1.4Fix
composer require silverstripe/framework:^4.1.4Packagist/silverstripe/framework
Introduced in:
4.2.0-rc1Fixed in: 4.2.3Fix
composer require silverstripe/framework:^4.2.3References
- https://github.com/silverstripe/silverstripe-framework/commit/48bd335648188df9dae72be1e5f9c808f3fe1e77[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/fecedc2d98eeaaff6424fb59dc70ef6bdc6dc92d[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-020-1.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/ss-2018-020[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"]}'