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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 4.0.0-rc1 before 4.0.6Ecosystem versions | 4.0.6 |
| From 4.1.0-rc1 before 4.1.4Ecosystem versions | 4.1.4 |
| From 4.2.0-rc1 before 4.2.3Ecosystem versions | 4.2.3 |
Version evidence: OSV · GHSA-265q-222x-52m6
View original version evidence (19 explicit versions)
Original source description
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.
References
- Patch github.com/silverstripe/silverstripe-framework/commit/48bd335648188df9dae72be1e5f9c808f3fe1e77
- Patch github.com/silverstripe/silverstripe-framework/commit/fecedc2d98eeaaff6424fb59dc70ef6bdc6dc92d
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-020-1.yaml
- Source reference github.com/silverstripe/silverstripe-framework
- Security advisory www.silverstripe.org/download/security-releases/ss-2018-020