GitHub Advisoryadvisory · Packagist

GHSA-xx4r-5265-48j6 silverstripe/framework SQL injection in full text search

HIGH Published 2024-05-27 Modified 2024-05-27 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-27

Affected packages

• Packagist silverstripe/framework: >= 3.5.0-rc1, < 3.5.6 → fixed in 3.5.6 • Packagist silverstripe/framework: >= 3.6.0-rc1, < 3.6.3 → fixed in 3.6.3 • Packagist silverstripe/framework: >= 4.0.0-rc1, < 4.0.1 → fixed in 4.0.1

Description

When performing a fulltext search in SilverStripe 4.0.0 the 'start' querystring parameter is never escaped safely. This exposes a possible SQL injection vulnerability. The issue exists in 3.5 and 3.6 but is less vulnerable, as SearchForm sanitises these variables prior to passing to mysql.

Related

Weakness · CWE (1)

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

References