CVE-2020-21808: NukeViet SQL Injection vulnerability via topicsid parameter

nukeviet/nukeviet Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Critical
9.8

CVE-2020-21808: NukeViet SQL Injection vulnerability via topicsid parameter. Affects nukeviet/nukeviet versions >= 4.0.10, < 4.3.08. Fixed in 4.3.08. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

NukeViet CMS is an open-source content management system that allows users to create and manage websites. It is written in PHP and is widely used for various web applications. The vulnerability in question affects NukeViet CMS versions 4.0.10 to 4.3.07. This vulnerability arises from a SQL Injection flaw present in the addtotopics.php file located in the modules/news/admin directory. The vulnerability can be exploited by an attacker through the topicsid parameter, allowing them to execute arbitrary SQL queries and potentially gain unauthorized access to the CMS's database.

Vulnerability Detail

The SQL Injection vulnerability in NukeViet CMS allows an attacker to manipulate the topicsid parameter in the addtotopics.php file. By injecting malicious SQL code, an attacker can bypass input validation and execute arbitrary SQL queries. This can lead to various malicious activities, such as unauthorized access to the database, data manipulation, or even complete compromise of the CMS. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

Minimum fixed version

4.3.08

This is the first release that contains the fix.

composer require nukeviet/nukeviet:4.3.08

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can modify the affected file addtotopics.php by implementing input validation and sanitization techniques. Here is an example of how to sanitize the topicsid parameter using PHP's mysqli_real_escape_string function:

$topicsid = mysqli_real_escape_string($connection, $_GET['topicsid']);

Conclusion

The SQL Injection vulnerability in NukeViet CMS versions 4.0.10 to 4.3.07 can be exploited by manipulating the topicsid parameter in the addtotopics.php file. It is crucial for users to update their CMS installation to version 4.3.08 or later to mitigate the risk of unauthorized access and potential compromise of their websites. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nukeviet/nukeviet →

Share this vulnerability

FAQ

NukeViet CMS is an open-source content management system written in PHP that allows users to create and manage websites.

Versions 4.0.10 to 4.3.07 of NukeViet CMS are affected by this SQL Injection vulnerability.

This vulnerability allows an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access to the CMS's database and other malicious activities.

To fix this vulnerability, it is recommended to upgrade to NukeViet CMS version 4.3.08 or later.

Yes, a temporary workaround is to implement input validation and sanitization techniques in the affected file addtotopics.php.

Related vulnerabilities

Recent vulnerabilities recorded for nukeviet/nukeviet.

How To Fix

Minimum fixed version

4.3.08

This is the first release that contains the fix.

composer require nukeviet/nukeviet:4.3.08

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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