high8.8No CVE yet
GHSA-265q-222x-52m6
silverstripe/framework has potential SQL Injection vulnerability in PostgreSQL database connector
Impact
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.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | silverstripe/framework | >= 4.0.0-rc1, < 4.0.6 | 4.0.6 |
| composer | silverstripe/framework | >= 4.1.0-rc1, < 4.1.4 | 4.1.4 |
| composer | silverstripe/framework | >= 4.2.0-rc1, < 4.2.3 | 4.2.3 |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-265q-222x-52m6
- https://github.com/silverstripe/silverstripe-framework/commit/48bd335648188df9dae72be1e5f9c808f3fe1e77
- https://github.com/silverstripe/silverstripe-framework/commit/fecedc2d98eeaaff6424fb59dc70ef6bdc6dc92d
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-020-1.yaml
- https://www.silverstripe.org/download/security-releases/ss-2018-020