# CVE-2026-23873: HUSTOJ is Vulnerable to Stored CSV Injection (Formula Injection) in Contest Rank Export

- Severity: Medium 5.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-21T23:26:21.924Z
- Modified: 2026-06-17T10:22:14.120Z
- Weaknesses: CWE-1236
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- zhblue hustoj: <= 26.01.01
- hustoj hustoj: up to 26.01.31

## Every score

- GitHub_M: CVSS:4.0 5.2 Medium `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`
- NVD: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/zhblue/hustoj/security/advisories/GHSA-gqwv-v7vx-2qjw> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-23873](https://www.cve.org/CVERecord?id=CVE-2026-23873), CVE Terms of Use, modified 2026-01-22
- NVD: [CVE-2026-23873](https://nvd.nist.gov/vuln/detail/CVE-2026-23873), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23873 · Whole record: https://cve.day/CVE-2026-23873.json · Rebuilt by cve.day 2026-11-25T22:59:13.034Z
