{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24479 exists.","fix":"No fix has been published for CVE-2026-24479 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-24479 is a critical path traversal vulnerability in zhblue hustoj, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-24479 and fix it if it is affected.\n\nWhat it is: CVE-2026-24479 is a critical path traversal vulnerability in zhblue hustoj, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24479 exists.\n\nAffected product: zhblue hustoj. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-24479/ (Markdown: https://insights.sbomify.com/CVE-2026-24479/index.md)","id":"CVE-2026-24479","markdown":"https://insights.sbomify.com/CVE-2026-24479/index.md","name":"CVE-2026-24479","record":{"aliases":["GHSA-xmgg-2rw4-7fxj"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Online Judge System","requires_auth":"none","summary":"Attackers can achieve remote code execution by uploading a malicious ZIP archive with path traversal sequences in HUSTOJ problem import modules.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hustoj","vendor":"hustoj"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2026-01-26","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":0,"refs":[{"date":"2026-01-26","kind":"metasploit","ref":"exploit/linux/http/hustoj_problem_import_rce","stars":null,"title":"HUSTOJ Admin users can zip-slip problem_import_qduoj.php, planting PHP files in webroot for RCE"},{"date":"2026-04-30","kind":"exploitdb","ref":"52539","stars":null,"title":"HUSTOJ Zip-Slip v26.01.24 -  RCE"}],"tier":"weaponised"},"has_fix":false,"headline":"HUSTOJ has Arbitrary File Write (Zip Slip) in Problem Import Modules that leads to RCE","id":"CVE-2026-24479","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"QGIS had validated RCE and Repository Takeover via GitHub Actions","id":"CVE-2026-24480"},"packages":[],"prev":{"headline":"AnythingLLM vulnerable to Path Traversal","id":"CVE-2026-24478"},"products":["hustoj"],"published":"2026-01-27","related":[{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2025-50938","kev_date_added":null,"published":"2025-08-19"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2022-42187","kev_date_added":null,"published":"2022-11-17"},{"cvss_score":5.2,"headline":"HUSTOJ is Vulnerable to Stored CSV Injection (Formula Injection) in Contest Rank Export","id":"CVE-2026-23873","kev_date_added":null,"published":"2026-01-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-27","vendors":["zhblue"]},"summary":"Attackers can achieve remote code execution by uploading a malicious ZIP archive with path traversal sequences in HUSTOJ problem import modules.","url":"https://insights.sbomify.com/CVE-2026-24479/"}