GitHub Advisoryadvisory · Packagist

GHSA-265q-222x-52m6 silverstripe/framework has potential SQL Injection vulnerability in PostgreSQL database connector

HIGH Published 2024-05-28 Modified 2024-05-28 Official page ↗
Ecosystem
Packagist
Packages
silverstripe/framework
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2024-05-28

Affected packages

• Packagist silverstripe/framework: >= 4.0.0-rc1, < 4.0.6 → fixed in 4.0.6 • Packagist silverstripe/framework: >= 4.1.0-rc1, < 4.1.4 → fixed in 4.1.4 • Packagist silverstripe/framework: >= 4.2.0-rc1, < 4.2.3 → fixed in 4.2.3

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.

Related

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References