CVE-2026-23873 Details
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.
A CSV injection vulnerability, also known as formula injection, has been identified in Hustoj, an open-source online judge platform. All versions are affected. The vulnerability arises in the contest rank export functionality, specifically in the files 'contestrank.xls.php' and 'admin/ranklist_export.php'. The application does not properly sanitize user input in the 'Nickname' field before exporting it to an .xls file, which is rendered as an HTML table but opened in Excel. This lack of input validation allows a malicious user to inject an Excel formula, which, when the rank list is exported and opened in Microsoft Excel, gets executed. This could result in arbitrary command execution on the administrator's machine or data exfiltration.
Sanitize the 'Nickname' input by prepending a single quote if the data begins with formula triggers. This can be done by checking the first character of the nickname for '=', '+', '-', or '@' and adding a single quote before the nickname when exporting the data.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zhblue/hustoj/security/advisories/GHSA-gqwv-v7vx-2qjw | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1236 | Improper Neutralization of Formula Elements in a CSV File | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hustoj hustoj | <= 26.01.31 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 27, 2026 | Initial Analysis | [email protected] |
| Jan 22, 2026 | New CVE Received | [email protected] |