CVE-2026-24479

HUSTOJ has Arbitrary File Write (Zip Slip) in Problem Import Modules that leads to RCE

Published Jan 27, 2026 CVSS 4.0 · 9.3 Critical EPSS 8.1% KEV · Not listed Exploits · 2
Description
HUSTOF is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. Prior to version 26.01.24, the problem_import_qduoj.php and problem_import_hoj.php modules fail to properly sanitize filenames within uploaded ZIP archives. Attackers can craft a malicious ZIP file containing files with path traversal sequences (e.g., ../../shell.php). When extracted by the server, this allows writing files to arbitrary locations in the web root, leading to Remote Code Execution (RCE). Version 26.01.24 contains a fix for the issue.

Analysis

AI-generated

Technical impact

HUSTOJ, an open‑source online judge, contains an arbitrary file write flaw caused by Zip Slip in the problem_import_qduoj.php and problem_import_hoj.php modules. Attackers can craft a ZIP archive with path traversal entries (e.g., ../../shell.php). When the server extracts the archive, it writes files to arbitrary locations within the web root, allowing the execution of attacker‑supplied code and full compromise of the host. This vulnerability is a classic path‑traversal weakness as identified by CWE‑22.

Affected Systems

The issue affects all installations of HUSTOJ provided by zhblue from versions prior to 26.01.24. The vendor implemented a fix in release 26.01.24, which removes the failure to sanitize filenames in ZIP uploads. Users running older versions are vulnerable until they upgrade.

Risk and Exploitability

The CVSS score of 9.3 indicates a critical severity. The EPSS score of 8% indicates a moderate exploitation probability, suggesting that some actors may attempt exploitation. The resulting remote code execution outage warrants high vigilance. The attack vector is remote: an adversary uploads a malicious ZIP file to the import modules, triggering the path traversal during extraction. The lack of a KEV listing does not diminish the risk; the vulnerability remains actionable and should be patched promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade HUSTOJ to version 26.01.24 or later to apply the path traversal fix.
  • Restrict or disable the problem_import_qduoj.php and problem_import_hoj.php import modules for users who do not need them.
  • Configure the application to validate and sanitize filenames from ZIP archives, rejecting any path traversal sequences such as ../../ before extracting.

Generated by OpenCVE AI on June 18, 2026 at 05:31 UTC.

Tracking

Sign in to view the affected projects.

Exploits (2)

2 public exploits detected. Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:hustoj:hustoj:*:*:*:*:*:*:*:*
Metrics cvssV3_1

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

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Hustoj
Hustoj hustoj
Vendors & Products Hustoj
Hustoj hustoj
Type Values Removed Values Added
Description HUSTOF is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. Prior to version 26.01.24, the problem_import_qduoj.php and problem_import_hoj.php modules fail to properly sanitize filenames within uploaded ZIP archives. Attackers can craft a malicious ZIP file containing files with path traversal sequences (e.g., ../../shell.php). When extracted by the server, this allows writing files to arbitrary locations in the web root, leading to Remote Code Execution (RCE). Version 26.01.24 contains a fix for the issue.
Title HUSTOJ has Arbitrary File Write (Zip Slip) in Problem Import Modules that leads to RCE
Weaknesses CWE-22
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 27, 2026, 2:42 PM
Reserved
Jan 23, 2026, 12:38 AM
Status
Analyzed
Published
Jan 27, 2026, 1:16 AM
Modified
Jun 17, 2026, 10:23 AM