Skip to main content

RUET OJ CVE-2025-12326

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

Attack ChainAIDerived

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

  1. Access
    Identify publicly accessible RUET OJ instance
  2. Delivery
    Send crafted POST to /process.php
  3. Exploit
    Inject SQL payload via 'un' parameter
  4. Execution
    Execute arbitrary database queries
  5. Impact
    Exfiltrate credentials or application 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

No special conditions required - the CVSS 4.0 vector (PR:N/UI:N/AC:L) confirms remote unauthenticated exploitation against the default configuration of RUET OJ instances exposed to the network. The sole limiting factors are: (1) the target must be running this specific PHP codebase with /process.php publicly reachable, and (2) the application must have a functioning backend database. The 'un' parameter in the POST body is the direct injection point. Non-public deployments (intranet-only, behind authentication proxies) would reduce but not eliminate risk depending on the attacker's network position.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms this is remotely exploitable with no authentication and no special conditions, with low confidentiality, integrity, and availability impacts. Despite these attributes suggesting broad exposure, the EPSS score of 0.02% at the 6th percentile indicates extremely low observed exploitation probability - consistent with the product's obscure, academic-project nature. A public exploit submission exists on VulDB (https://vuldb.com/?submit.674322), which is a real escalating signal, but no CISA KEV listing confirms active exploitation. The primary real-world risk is limited to any institution that has deployed this specific codebase publicly. The absence of vendor response to disclosure means no official patch is forthcoming, which elevates urgency for the narrow set of affected operators.

Exploit ScenarioDerived

An external attacker with no credentials sends a crafted HTTP POST request to the publicly accessible /process.php endpoint, embedding SQL injection payloads in the 'un' parameter (e.g., UNION-based or blind boolean payloads). Because the application passes this input directly into a SQL query without sanitization, the attacker can enumerate database tables, extract user credentials or submission data, or modify records. A public exploit submission on VulDB confirms the viability of this attack path.

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 – Jul 25, 2026

SQL injection in RUET OJ's /process.php POST request handler allows remote unauthenticated attackers to manipulate the 'un' parameter to interact with the underlying database. The affected codebase, maintained by shawon100 on GitHub, uses no formal versioning - all commits up to 18fa45b0a669fa1098a0b8fc629cf6856369d9a5 are affected. A public exploit has been disclosed via VulDB, though the EPSS score of 0.02% (6th percentile) reflects the product's extremely limited deployment footprint; no active exploitation is confirmed.

RemediationAI

No vendor-released patch has been identified at time of analysis - the vendor was notified but did not respond. Operators of this platform should immediately restrict public network access to /process.php by blocking the endpoint at the web server or firewall level; note this may disable affected functionality. Alternatively, parameterized queries or prepared statements should be implemented in the /process.php POST handler to sanitize the 'un' input - this is a code-level fix requiring developer intervention. A Web Application Firewall (WAF) rule targeting SQL metacharacters in POST body parameters can serve as a compensating control but is bypassable with encoding evasion. Given the product's academic context, the most pragmatic control is to take the application offline or restrict access to authenticated and trusted network segments only. Advisory references are at https://vuldb.com/?ctiid.330103.

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 PHP-based Online Judge platform developed for Rajshahi University of Engineering & Technology, identified in the CPE as cpe:2.3:a:shawonruet:ruet_oj:*:*:*:*:*:*:*:*. The vulnerability resides in the /process.php endpoint, which processes POST request data without adequate sanitization of the 'un' parameter before constructing SQL queries. The root cause is classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, i.e., Injection), the parent class that encompasses SQL injection (CWE-89). Because the application does not use a versioning scheme, there is no clean version boundary - the entire codebase as of the referenced commit is considered vulnerable.

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 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
vuln.today AI 6.5 MEDIUM

Network-accessible POST endpoint, no authentication per CVSS 4.0 PR:N; SQL injection yields limited data read/write but no direct availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

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

DescriptionCVE.org

A vulnerability was found in shawon100 RUET OJ up to 18fa45b0a669fa1098a0b8fc629cf6856369d9a5. This vulnerability affects unknown code of the file /process.php of the component POST Request Handler. The manipulation of the argument un results in sql injection. The attack can be launched remotely. The exploit has been made public and could be used. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Prevalence
Rare
niche academic project for a single university
Exploit
POC
Public exploit code exists
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 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· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

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.

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