Skip to main content

Public Chat Room CVE-2025-8164

LOW
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2025-07-25 cna@vuldb.com
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with valid credentials
  2. Delivery
    Send HTTP request to send_message.php
  3. Exploit
    Include SQL injection payload in ID parameter
  4. Execution
    Unvalidated input concatenated into SQL query
  5. Persist
    SQL injection executes with database privileges
  6. Impact
    Attacker retrieves or modifies database contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation requires valid authentication credentials to the Public Chat Room application (PR:L in CVSS vector confirms authentication is mandatory). The attacker must be able to send a message via the send_message.php endpoint, which is typically only available after login. Default or weak credentials, publicly disclosed credentials, or compromised accounts substantially lower exploitation barriers. No special application configuration is implied; the vulnerability appears to exist in all standard installations of version 1.0. The SQL injection is triggered specifically through the ID parameter manipulation, suggesting it may control message ID or recipient ID in the SQL query; other parameters may not be vulnerable. Non-default PHP security settings (magic_quotes_gpc) do not mitigate this vulnerability if the code relies on string concatenation rather than prepared statements.

Impact

This vulnerability presents a contradictory risk profile. The CVSS 4.0 vector indicates low real-world severity: CVSS score of 2.1 with limited impact (VC:L/VI:L/VA:L), authenticated access requirement (PR:L), and no scope escalation (SC:N). However, EPSS exploitation probability is extremely low at 0.07% (20th percentile), suggesting minimal attacker interest despite public exploit availability. The lack of scope change (SC:N) means SQL injection is confined within the database tier and cannot directly compromise the hosting OS or network. CRITICAL SIGNAL MISMATCH: The description classifies this as 'critical' despite a CVSS score of 2.1 (well below any severity threshold) - this appears to be a classification error by the source (VulDB). Real-world risk is LOW for organizations with proper access controls (limiting who can authenticate) but MEDIUM for applications where user registration is open or default credentials exist. The availability of public POC code lowers barrier to exploitation for users with valid credentials, but network segmentation and authentication enforcement substantially mitigate this threat.

Exploit ScenarioDerived

An authenticated user of the Public Chat Room application crafts a malicious message request with a crafted ID parameter containing SQL injection syntax (e.g., ID=1' UNION SELECT password FROM users--), sends it via HTTP POST to send_message.php, and the unvalidated input is concatenated directly into a SQL query. The attacker's injected SQL executes with database privileges, returning sensitive data (user credentials, private messages, or database structure) in the application response or logs, enabling credential theft or information disclosure.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 29, 2026

SQL injection in code-projects Public Chat Room 1.0 via the ID parameter in send_message.php allows authenticated remote attackers to execute arbitrary SQL queries, despite a low CVSS 4.0 score of 2.1. The vulnerability requires prior authentication (PR:L) and offers only limited confidentiality impact (VC:L/VI:L/VA:L), but publicly available exploit code exists and the attack vector is network-accessible with low complexity, making it suitable for low-friction post-compromise lateral movement or information disclosure within authenticated environments.

RemediationAI

No vendor-released patch has been identified at time of analysis. Immediate remediation requires parameterized queries (prepared statements with bound parameters) in send_message.php to neutralize SQL injection. Replace all direct string concatenation in SQL statements with parameterized query syntax (e.g., using PHP PDO with placeholders or mysqli prepared statements). As a compensating control, implement strict input validation on the ID parameter to accept only alphanumeric characters or numeric values expected for message identifiers, rejecting any inputs containing SQL metacharacters (quotes, semicolons, dashes, parentheses); this reduces but does not eliminate risk. Consider implementing a Web Application Firewall (WAF) rule to detect and block SQL injection patterns in the ID parameter (e.g., OWASP ModSecurity rules for SQL injection detection), though this cannot replace code-level fixes. Restrict database user privileges: ensure the PHP application connects to the database with a limited account that has only SELECT/INSERT/UPDATE privileges on necessary tables, not administrative rights, limiting blast radius if injection succeeds. Users unable to patch immediately should disable or restrict access to the chat functionality if operationally feasible, or implement IP whitelisting to limit which authenticated users can access send_message.php.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

The vulnerability is a classic SQL injection flaw (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component, commonly manifesting as SQL injection) in PHP code. The send_message.php script fails to sanitize or parameterize the ID parameter before incorporating it into SQL queries. This allows an attacker who has already authenticated to the application to craft malicious SQL statements that execute with the privileges of the database connection. The PHP application likely uses unescaped string concatenation or inadequate input validation, permitting attackers to break out of intended SQL syntax and inject commands to read, modify, or exfiltrate database contents.

Know when Public Chat Room 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

NVD PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
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

DescriptionCVE.org

A vulnerability has been found in code-projects Public Chat Room 1.0 and classified as critical. This vulnerability affects unknown code of the file send_message.php. The manipulation of the argument ID leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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.

Affected Products (CPE)CVE.org

cpe:2.3:a:fabian:public_chat_room:1.0:*:*:*:*:*:*:*

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