Skip to main content

SourceCodester Comment System CVE-2026-8126

| EUVDEUVD-2026-28488 MEDIUM
SQL Injection (CWE-89)
2026-05-08 VulDB GHSA-rw2q-pc53-f59p
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts POST request with SQL payload in Name parameter
  2. Delivery
    HTTP request transmitted to post_comment.php
  3. Exploit
    Server receives and processes request without sanitization
  4. Install
    Payload inserted into SQL query string
  5. C2
    Database executes injected SQL commands
  6. Execute
    Attacker retrieves or modifies database records
  7. Impact
    Information disclosure or data corruption occurs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires only that post_comment.php be accessible via HTTP/HTTPS from the network attacker's perspective. No authentication is required - the endpoint must accept unauthenticated POST requests to the Name parameter. The flaw is present in default installations of SourceCodester Comment System 1.0 with no special configuration or non-default settings required to trigger it. Exploitation is limited to the scope of data accessible via SQL queries through the application's database connection (typically comment data, user profiles, and configuration stored in the database). The application must have a backend database configured (MySQL, PostgreSQL, etc.) for the injection to have meaningful impact; a database-less configuration would not be vulnerable.

Impact

CVSS 5.5 with AV:N/AC:L/PR:N/UI:N indicates a network-accessible, unauthenticated vulnerability with low complexity of exploitation. The E:P tag confirms a publicly available proof-of-concept, lowering the barrier to practical exploitation. However, the CVSS 4.0 vector shows limited scope of impact (VC:L/VI:L/VA:L with SC:N/SI:N/SA:N), meaning SQL injection is constrained to read/modify data within the application's database context without achieving system-level compromise or confidentiality breach of other systems. The moderate CVSS score combined with public exploit availability and zero authentication requirements makes this a real priority for organizations deploying this component, particularly if it processes user-generated content or comment systems on public-facing websites. The low impact ratings suggest this is not a remote code execution vector but rather a data manipulation or information disclosure risk dependent on backend database configuration and what sensitive data is stored in the comments table.

Exploit ScenarioDerived

An attacker submits a comment via an HTTP POST request to post_comment.php with a crafted Name parameter containing SQL metacharacters such as ' OR '1'='1 or UNION SELECT commands. The vulnerable application concatenates this unsanitized input directly into a SQL query, executing arbitrary SQL commands against the backend database. The attacker can extract comment data, user credentials, or other sensitive information stored in the database, or modify existing records. A public GitHub repository (https://github.com/redshadowword-cell-CVE/issues/7) contains proof-of-concept code, lowering the technical barrier significantly.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

SQL injection in SourceCodester Comment System 1.0 allows remote unauthenticated attackers to manipulate the Name argument in post_comment.php, enabling arbitrary SQL query execution with low confidentiality and integrity impact. Publicly available exploit code exists and the attack requires no special user interaction or authentication, making it accessible to any network-connected attacker.

RemediationAI

Immediate action required: upgrade to a patched version if the vendor releases one, or discontinue use of this component and migrate to a maintained, actively-supported comment system with secure input handling. If immediate upgrade is not feasible, implement the following compensating controls: (1) Use Web Application Firewall (WAF) rules to detect and block SQL injection payloads in the Name parameter (trade-off: WAF rules may produce false positives and require ongoing tuning); (2) Disable or restrict access to post_comment.php at the network perimeter using reverse proxy rules, allowing comments only from authenticated internal sources (trade-off: impacts user-facing comment functionality); (3) Apply strict input validation on the Name parameter at the application level, rejecting non-alphanumeric characters and enforcing maximum length limits (trade-off: may break legitimate comment names with special characters); (4) Run the database connection with minimal privileges (read-only to the comments table where possible) to limit the scope of an SQL injection attack (trade-off: requires database architecture review and may require application code changes). No vendor-released patch is confirmed at this time; consult https://www.sourcecodester.com/ for updates.

Affected VersionsENISA

Comment System 1.0

Affected Packages

euvd comment_system no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SourceCodester Comment System is a PHP-based web application component designed to handle user comments. The vulnerability resides in the post_comment.php file, which processes incoming comment submissions. The Name parameter is passed directly into SQL queries without proper input validation or parameterized query preparation, violating CWE-89 (SQL Injection) principles. This is a classic first-generation web application flaw common in legacy PHP systems that concatenate user input into query strings rather than using prepared statements or bound parameters. The CPE indicates all versions of the product are affected.

Know when Comment System gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
May 08, 2026 - 03:22 NVD
HIGH MEDIUM
CVSS changed
May 08, 2026 - 03:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)
CVE Published
May 08, 2026 - 01:45 nvd
MEDIUM 5.5

DescriptionCVE.org

A flaw has been found in SourceCodester Comment System 1.0. This issue affects some unknown processing of the file post_comment.php. This manipulation of the argument Name causes sql injection. Remote exploitation of the attack is possible. The exploit has been published and may be used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy