{"id":"CVE-2026-24479","published":"2026-01-27T00:43:42Z","modified":"2026-01-27T14:42:04Z","title":"HUSTOJ has Arbitrary File Write (Zip Slip) in Problem Import Modules that leads to RCE","vendor":"zhblue","product":"hustoj","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.08975,"percentile":0.95999,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/zhblue/hustoj/security/advisories/GHSA-xmgg-2rw4-7fxj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zhblue/hustoj/commit/902bd09e6d0011fe89cd84d4236899314b33101f","tags":["x_refsource_MISC"]}],"priority":{"score":30.7,"factors":[{"name":"EPSS percentile","points":19.2},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.51}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-04-30"},"metasploit":[{"name":"HUSTOJ Admin users can zip-slip problem_import_qduoj.php, planting PHP files in webroot for RCE","module":"exploit/linux/http/hustoj_problem_import_rce","type":"exploit","disclosureDate":"2026-01-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/hustoj_problem_import_rce.rb"}],"first":{"date":"2026-01-26","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/hustoj_problem_import_rce.rb"},"provenance":"source"},"vendorSlug":"zhblue","affectedVersions":[{"vendor":"zhblue","product":"hustoj","versions":["< 26.01.24"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-27T14:41:12.496693Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The HUSTOJ online judge platform (zhblue hustoj) has a path traversal flaw in its problem_import_qduoj.php and problem_import_hoj.php problem import modules, where filenames inside uploaded ZIP archives are not properly sanitized before extraction. An attacker who can reach the network-accessible import functionality, without needing authentication or user interaction, can supply a crafted ZIP containing traversal sequences such as ../../shell.php so that files are written outside the intended directory into the web root, which can lead to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:25Z"},"euvd":{"id":"EUVD-2026-4836","exploited":false,"provenance":"source"},"exploits":[{"id":52539,"url":"https://www.exploit-db.com/exploits/52539","title":"HUSTOJ Zip-Slip 26.01.24 - Remote Code Execution (RCE) (Metasploit)","date":"2026-04-30","verified":false,"provenance":"source"}]}