RUET OJ
CVE-2025-12327
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid RUET OJ login credentials
-
DeliveryAuthenticate to application
-
ExploitCraft SQL injection payload in ID parameter
-
ExecutionSubmit request to /description.php
-
PersistDatabase executes injected SQL
-
ImpactExfiltrate sensitive data
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 an authenticated user account on the target RUET OJ instance (PR:L in CVSS vector). The /description.php endpoint must be accessible and must process the ID parameter without input validation or prepared statements. No special non-default configuration is required; the vulnerability exists in the baseline code. The attacker cannot exploit this remotely without valid login credentials. Additionally, the application's database permissions and query context will determine the extent of data exposure or modification achievable - if the application user has only SELECT permissions, the injected SQL is limited to data exfiltration rather than data manipulation or code execution. |
| Impact | This vulnerability presents a LOW real-world risk despite public exploit availability, supported by multiple convergent signals. The CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:N) requires authenticated login (PR:L), which restricts the attack surface to registered users only - a significant barrier. The confidentiality, integrity, and availability impacts are all rated LOW (VC:L/VI:L/VA:L), meaning even successful exploitation yields limited data exposure or modification capabilities. The EPSS score of 0.02% (5th percentile) indicates negligible probability of exploitation in the wild, contradicting the theoretical exploitability rating (E:P). This discrepancy suggests the public disclosure has not translated to widespread attacks, likely because: (1) RUET OJ appears to be a niche educational platform with limited internet-facing instances, (2) the authentication requirement filters out mass-exploit scanning, and (3) the payload complexity or requirement for domain knowledge of the application reduces scripted attack utility. Security teams should apply the patch when available but should not treat this as an urgent remediation priority; priority should follow a risk-adjusted timeline accounting for the application's exposure and user base sensitivity. |
| Exploit ScenarioDerived | An authenticated user logs into a RUET OJ instance and crafts a request to /description.php?ID=1' OR '1'='1 or a similar SQL injection payload. The vulnerable code concatenates this unsanitized input directly into a SQL query, allowing the attacker to extract problem descriptions, user data, or other database records. A more sophisticated attack could union-based injection to retrieve sensitive information from other tables, though the LIMITED impact rating suggests the database schema isolation or query constraints prevent complete system compromise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
SQL injection in RUET OJ /description.php endpoint allows authenticated remote attackers to manipulate the ID parameter and inject arbitrary SQL commands, achieving limited confidentiality and integrity compromise. The vulnerability affects the rolling-release version up to commit 18fa45b0a669fa1098a0b8fc629cf6856369d9a5, with publicly available exploit code disclosed. Despite the public disclosure, the extremely low EPSS score (0.02%) and high authentication barrier suggest minimal real-world exploitation risk, though the unresponsive vendor posture leaves the codebase unpatched.
RemediationAI
The vendor (shawonruet) did not respond to early disclosure notifications and has not released an official patch as of the analysis date. Administrators should monitor the RUET OJ GitHub repository for security fixes and apply updates as soon as available. As an immediate compensating control, restrict access to the /description.php endpoint to authenticated users and apply a Web Application Firewall (WAF) rule to block common SQL injection payloads in the ID parameter (e.g., patterns containing single quotes, semicolons, or SQL keywords). Additionally, implement database-level read-only permissions for the application user account if the application does not require write access to the affected query - this limits the scope of injected commands to SELECT operations only. Developers should conduct an immediate code review of all user-input handling in PHP files, particularly those processing ID or identifier parameters, and refactor them to use prepared statements with parameterized queries. For long-term mitigation, consider migrating to a PHP framework with built-in ORM and input validation (e.g., Laravel, Symfony) that enforces prepared statements by default.
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
RUET OJ is a competitive programming judge system written in PHP. The vulnerability exists in /description.php, which processes a user-supplied ID parameter without proper input sanitization or parameterized query construction (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component). The SQL injection occurs in the argument handling logic, likely in a SELECT or JOIN query constructing problem descriptions. As a rolling-release project with no versioning scheme, the affected codebase is identified only by a Git commit hash (18fa45b0a669fa1098a0b8fc629cf6856369d9a5). The PHP framework does not appear to enforce prepared statements or ORM protections by default.
Know when Ruet Oj 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
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 Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability was determined in shawon100 RUET OJ up to 18fa45b0a669fa1098a0b8fc629cf6856369d9a5. This issue affects some unknown processing of the file /description.php. This manipulation of the argument ID causes sql injection. The attack may be initiated remotely. The exploit has been publicly disclosed and may be utilized. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The vendor was contacted early about this disclosure but did not respond in any way.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
SQL injection in RUET OJ's /process.php POST request handler allows remote unauthenticated attackers to manipulate the '
SQL injection in shawon100 RUET OJ through the ID parameter of /details.php allows authenticated remote attackers to man
SQL injection in RUET OJ via the Name parameter in /contestproblem.php allows authenticated remote attackers to execute
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB