SQL Injection Vulnerability in silverstripe/framework

silverstripe/framework Updated 02 Oct 2025

Summary

28/05/2024
HIGH
Yes i
High
8.8

GHSA-265q-222x-52m6: silverstripe/framework has potential SQL Injection vulnerability in PostgreSQL database connector. Affects silverstripe/framework across 3 version ranges.

>= 4.0.0-rc1, < 4.0.6 >= 4.1.0-rc1, < 4.1.4 >= 4.2.0-rc1, < 4.2.3

Fixed in 4.0.6, 4.1.4 or 4.2.3, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

silverstripe/framework is a popular PHP framework used for building websites and web applications. It provides a range of features and functionalities to developers, including database connectivity. The framework includes a database adapter for PostgreSQL, which allows developers to interact with PostgreSQL databases. However, a potential SQL injection vulnerability has been identified in the PostgreSQL database connector of silverstripe/framework.

Vulnerability Detail

The SQL injection vulnerability in silverstripe/framework occurs when table names are not properly escaped before being passed to the database adapter or user code. This vulnerability could potentially allow an attacker to manipulate SQL queries and execute arbitrary SQL commands, leading to unauthorized access, data leakage, or data manipulation. Although the likelihood of exploitation is low, it is still important to address this vulnerability to ensure the security of applications built using silverstripe/framework.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0.0-rc1, < 4.0.6 4.0.6
    composer require silverstripe/framework:4.0.6
  • >= 4.1.0-rc1, < 4.1.4 4.1.4
    composer require silverstripe/framework:4.1.4
  • >= 4.2.0-rc1, < 4.2.3 4.2.3
    composer require silverstripe/framework:4.2.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, developers can follow secure coding practices to minimize the risk of SQL injection vulnerabilities. This includes using parameterized queries or prepared statements instead of concatenating user input directly into SQL queries.

Conclusion

The SQL injection vulnerability in silverstripe/framework can pose a significant risk to the security of applications built using the framework. It is crucial to update to the patched versions (4.0.6, 4.1.4, or 4.2.3) to mitigate the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for silverstripe/framework →

Share this vulnerability

FAQ

silverstripe/framework is a PHP framework used for building websites and web applications. It provides a range of features and functionalities to developers.

A SQL injection vulnerability occurs when untrusted user input is directly concatenated into SQL queries without proper sanitization or parameterization. This can allow attackers to manipulate the SQL queries and execute arbitrary SQL commands.

The SQL injection vulnerability in silverstripe/framework can potentially allow attackers to execute arbitrary SQL commands, leading to unauthorized access, data leakage, or data manipulation in applications built using the framework.

Yes, the SQL injection vulnerability has been fixed in versions 4.0.6, 4.1.4, and 4.2.3 of silverstripe/framework. It is recommended to update to these versions to mitigate the vulnerability.

The potential consequences of the SQL injection vulnerability include unauthorized access to sensitive data, data leakage, data manipulation, and potential compromise of the entire application or system.

Related vulnerabilities

Recent vulnerabilities recorded for silverstripe/framework.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0.0-rc1, < 4.0.6 4.0.6
    composer require silverstripe/framework:4.0.6
  • >= 4.1.0-rc1, < 4.1.4 4.1.4
    composer require silverstripe/framework:4.1.4
  • >= 4.2.0-rc1, < 4.2.3 4.2.3
    composer require silverstripe/framework:4.2.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback