CVE-2017-10842: baserCMS SQL Injection vulnerability

baserproject/basercms Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Critical
9.8

CVE-2017-10842: baserCMS SQL Injection vulnerability. Affects baserproject/basercms across 2 version ranges.

< 3.0.15 >= 4.0.0, < 4.0.6

Fixed in 3.0.15 or 4.0.6, 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

baserCMS is an open-source content management system (CMS) developed by baserproject. It is written in PHP and provides a platform for creating and managing websites. The vulnerability identified as CVE-2017-10842 affects baserCMS versions 3.0.14 and earlier, as well as 4.0.5 and earlier. This vulnerability allows remote attackers to execute arbitrary SQL commands through unspecified vectors.

Vulnerability Detail

The SQL injection vulnerability in baserCMS allows attackers to manipulate SQL queries and potentially gain unauthorized access to the underlying database. By injecting malicious SQL code, an attacker can bypass authentication mechanisms, extract sensitive information, modify or delete data, or even execute arbitrary commands on the server. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of the affected baserCMS installations.

How To Fix

Fixed versions by release line

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

  • < 3.0.15 3.0.15
    composer require baserproject/basercms:3.0.15
  • >= 4.0.0, < 4.0.6 4.0.6
    composer require baserproject/basercms:4.0.6

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

Workaround

If upgrading to a secure version is not immediately feasible, a temporary workaround is to implement input validation and parameterized queries in the application code. By validating user input and using prepared statements or parameterized queries, the risk of SQL injection can be significantly reduced. Here is an example of using parameterized queries in PHP:

$pdo = new PDO('mysql:host=localhost;dbname=mydatabase', 'username', 'password');
$stmt = $pdo->prepare('SELECT * FROM users WHERE username = :username');
$stmt->bindParam(':username', $username);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);

Conclusion

The baserCMS SQL injection vulnerability (CVE-2017-10842) poses a critical risk to the security of affected installations. It is crucial to upgrade to the latest secure version or implement the recommended workarounds to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for baserproject/basercms →

Share this vulnerability

FAQ

baserCMS is an open-source content management system (CMS) developed by baserproject. It provides a platform for creating and managing websites.

The vulnerability affects baserCMS versions 3.0.14 and earlier, as well as 4.0.5 and earlier.

The SQL injection vulnerability allows remote attackers to execute arbitrary SQL commands, potentially leading to unauthorized access, data manipulation, or even command execution on the server.

To fix this vulnerability, it is recommended to upgrade baserCMS to version 3.0.15 or later (for version 3.x) or version 4.0.6 or later (for version 4.x).

A temporary workaround is to implement input validation and parameterized queries in the application code to mitigate the risk of SQL injection.

Related vulnerabilities

Recent vulnerabilities recorded for baserproject/basercms.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

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

  • < 3.0.15 3.0.15
    composer require baserproject/basercms:3.0.15
  • >= 4.0.0, < 4.0.6 4.0.6
    composer require baserproject/basercms:4.0.6

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