Description
hustoj is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. All versions are vulnerable to CSV Injection (Formula Injection) through the contest rank export functionality (contestrank.xls.php and admin/ranklist_export.php). The application fails to sanitize user-supplied input (specifically the "Nickname" field) before exporting it to an .xls file (which renders as an HTML table but is opened by Excel). If a malicious user sets their nickname to an Excel formula when an administrator exports and opens the rank list in Microsoft Excel, the formula will be executed. This can lead to arbitrary command execution (RCE) on the administrator's machine or data exfiltration. A fix was not available at the time of publication.
Published: 2026-01-21
Score: 5.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Command Execution
Action: Monitor
AI Analysis

Impact

An attacker can set the Nickname field of a user account to a malicious Excel formula. When an administrator exports the contest rank list via contestrank.xls.php or admin/ranklist_export.php, the application writes the Nickname into an .xls file without sanitization. Because Excel renders the .xls file as an HTML table and evaluates embedded formulas, the malicious formula is executed on the machine that opens the file, enabling arbitrary command execution or data exfiltration.

Affected Systems

All versions of HUSTOJ developed by zhblue are affected. The vulnerability resides in the CSV export functionalities of the judging platform.

Risk and Exploitability

The CVSS base score is 5.2, indicating a moderate severity. EPSS is under 1%, showing a low current exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires that an attacker gains the ability to set a malicious Nickname and that an administrator later export the rank list and open the generated file in Microsoft Excel. Thus, the vulnerability is a local execution vector that can compromise confidentiality, integrity, or availability if the administrator uses a vulnerable system to view exported data.

Generated by OpenCVE AI on April 18, 2026 at 04:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to the latest HUSTOJ revision once a fix for the CSV injection issue is released.
  • Apply input sanitization to the Nickname field, preferring a leading single quote to neutralize potential formulas before export.
  • Restrict export privileges to trusted administrators and open exported .xls files in a sandboxed or read‑only environment to prevent execution of embedded formulas.

Generated by OpenCVE AI on April 18, 2026 at 04:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 27 Feb 2026 15:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:hustoj:hustoj:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.0, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}


Fri, 23 Jan 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Hustoj
Hustoj hustoj
Vendors & Products Hustoj
Hustoj hustoj

Thu, 22 Jan 2026 23:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 21 Jan 2026 23:45:00 +0000

Type Values Removed Values Added
Description hustoj is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. All versions are vulnerable to CSV Injection (Formula Injection) through the contest rank export functionality (contestrank.xls.php and admin/ranklist_export.php). The application fails to sanitize user-supplied input (specifically the "Nickname" field) before exporting it to an .xls file (which renders as an HTML table but is opened by Excel). If a malicious user sets their nickname to an Excel formula when an administrator exports and opens the rank list in Microsoft Excel, the formula will be executed. This can lead to arbitrary command execution (RCE) on the administrator's machine or data exfiltration. A fix was not available at the time of publication.
Title HUSTOJ is Vulnerable to Stored CSV Injection (Formula Injection) in Contest Rank Export
Weaknesses CWE-1236
References
Metrics cvssV4_0

{'score': 5.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-22T21:54:23.320Z

Reserved: 2026-01-16T21:02:02.899Z

Link: CVE-2026-23873

cve-icon Vulnrichment

Updated: 2026-01-22T21:54:18.753Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-22T00:15:51.770

Modified: 2026-02-27T15:02:33.920

Link: CVE-2026-23873

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T04:15:05Z

Weaknesses