LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 5.2Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

HUSTOJ contest rank exports can carry spreadsheet formulas hidden in user nicknames. If an administrator exports rankings and opens the file in Microsoft Excel, Excel may run the formula. The advisory says this could affect the administrator’s workstation, including data theft or command execution. No fix was available when published.

Executive priority

Prioritize if HUSTOJ is internet-facing or used with untrusted participants. The server vulnerability is medium severity, but the business risk centers on compromise of administrator workstations through exported files.

Technical view

CVE-2026-23873 is stored CSV/formula injection in HUSTOJ contest rank export paths contestrank.xls.php and admin/ranklist_export.php. User-controlled Nickname values are not sanitized before being included in an .xls export rendered as an HTML table. A low-privileged user can plant formula content; exploitation requires an administrator to export and open the file in Excel.

Likely exposure

Organizations running zhblue HUSTOJ versions up to and including 26.01.01 are affected. Exposure is highest where untrusted users can set nicknames and administrators routinely export contest rankings to Excel.

Exploitation context

No active exploitation is reported in the provided sources, and the CVE is not listed as KEV. Exploitation requires attacker account access to set a nickname and administrator interaction with the exported rank file in Microsoft Excel.

Researcher notes

The public advisory states all versions through 26.01.01 are vulnerable and no fix was available at publication. Evidence supports stored formula injection, not direct server-side RCE. Avoid treating this as remotely exploitable without user interaction.

Mitigation direction

  • Check the GitHub advisory and vendor project for updated guidance or a fixed release.
  • Avoid opening HUSTOJ rank exports in Excel until mitigated.
  • Limit who can change nicknames or participate in contests requiring admin exports.
  • Treat exported ranking files as untrusted content.
  • Review administrative workflows for unnecessary spreadsheet export use.

Validation and detection

  • Inventory HUSTOJ deployments and identify versions at or below 26.01.01.
  • Confirm whether contestrank.xls.php and admin/ranklist_export.php are present and used.
  • Review whether Nickname values are sanitized before export.
  • Determine whether administrators open rank exports in Microsoft Excel.
  • Monitor vendor advisory updates for patch availability.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-1236: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-23873 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.2 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.2CVSS 4.0MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

5.2Medium
CVSS 4.0 vector shape for CVE-2026-23873Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
zhbluehustoj<= 26.01.01Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-1236 · source CWE mapping

Improper Neutralization of Formula Elements in a CSV File

Improper Neutralization of Formula Elements in a CSV File represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.