Skip to main content

RUET OJ CVE-2025-12327

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

Attack ChainAIDerived

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

  1. Access
    Obtain valid RUET OJ login credentials
  2. Delivery
    Authenticate to application
  3. Exploit
    Craft SQL injection payload in ID parameter
  4. Execution
    Submit request to /description.php
  5. Persist
    Database executes injected SQL
  6. Impact
    Exfiltrate 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – 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

Vendor (vuldb) 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 Vendor (vuldb) · only source for this CVE.

CVSS VectorVendor: vuldb

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 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

EPSS Score
0.0%
Top 95% exploitable
Data Quality
4 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 No
EPSS 0.0%
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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
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:shawonruet:ruet_oj:*:*:*:*:*:*:*:*

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