{"id":"CVE-2024-56156","summary":"Halo Vulnerable to Stored XSS and RCE via File Upload Bypass","details":"Halo is an open source website building tool. Prior to version 2.20.13, a vulnerability in Halo allows attackers to bypass file type validation controls. This bypass enables the upload of malicious files including executables and HTML files, which can lead to stored cross-site scripting attacks and potential remote code execution under certain circumstances. This issue has been patched in version 2.20.13.","aliases":["GHSA-99mc-ch53-pqh9"],"modified":"2026-08-12T15:15:46.420930Z","published":"2025-04-25T15:08:00.942Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56156.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56156.json"},{"type":"ADVISORY","url":"https://github.com/halo-dev/halo/security/advisories/GHSA-99mc-ch53-pqh9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56156"},{"type":"FIX","url":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99"},{"type":"FIX","url":"https://github.com/halo-dev/halo/pull/7149"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/halo-dev/halo","events":[{"introduced":"0"},{"fixed":"e8ca93396fa6864b8962261064dc5a0601ab3f22"},{"fixed":"24f8d7b57127e2607ec05adb7c912b3decddeb99"}],"database_specific":{"cpe":"cpe:2.3:a:halo:halo:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.20.13"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v2.20.12","v2.20.11","v2.20.10","v2.20.9","v2.20.8","v2.20.7","v2.20.6","v2.20.5","v2.20.4","v2.20.3","v2.20.2","v2.20.1","v2.20.0","v2.20.0-rc.2","v2.20.0-rc.1","v2.19.0","v2.19.0-rc.4","v2.19.0-rc.3","v2.19.0-rc.2","v2.19.0-rc.1","v2.18.0","v2.18.0-rc.1","v2.17.0","v2.17.0-rc.1","v2.17.0-beta.1","v2.17.0-alpha.2","v2.17.0-alpha.1","v2.16.0","v2.16.0-rc.2","v2.16.0-rc.1","v2.15.0","v2.15.0-rc.1","v2.14.0","v2.14.0-rc.1","v2.13.0","v2.13.0-rc.1","v2.12.3","v2.12.0-rc.2","v2.12.0","v2.12.0-rc.1","v2.12.0-beta.2","v2.12.0-beta.1","v2.12.0-alpha.2","v2.12.0-alpha.1","v2.11.0","v2.11.0-rc.2","v2.11.0-rc.1","v2.10.0","v2.10.0-beta.1","v2.10.0-alpha.1","v2.9.0","v2.9.0-rc.1","v2.8.0","v2.8.0-rc.2","v2.8.0-rc.1","v2.7.0","v2.7.0-rc.2","v2.7.0-rc.1","v2.6.0","v2.6.0-rc.1","v2.5.1","v2.5.0","v2.5.0-rc.2","v2.5.0-rc.1","v2.4.0","v2.4.0-rc.1","v2.3.0","v2.3.0-rc.1","v2.2.0","v2.1.0","v2.1.0-rc.1","v2.0.0","v2.0.0-rc.2","v2.0.0-rc.1","v2.0.0-beta.2","v2.0.0-beta.1","v2.0.0-alpha.4","v2.0.0-alpha.3","v2.0.0-alpha.2","v2.0.0-alpha.1","v1.5.0-alpha.1","v1.4.13","v1.4.12","v1.4.11","v1.4.9","v1.4.8","v1.4.7","v1.4.7-beta.1","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.3-beta.3","v1.4.3-beta.2","v1.4.3-beta.1","v1.4.2","v1.4.1","v1.4.0","v1.4.0-beta.3","v1.4.0-beta.2","v1.4.0-beta.1","v1.3.2","v1.3.1","v1.3.0","v1.3.0-beta.4","v1.3.0-beta.3","v1.3.0-beta.2","v1.3.0-beta.1","v1.2.0","v1.1.1","v1.1.0","v1.0.3","v1.0.2","v1.0.1","v1.0.0","v0.4.1","v0.4.0","v0.3.0","v0.2.1","v0.2.0","v0.1.1","v0.1","v0.0.9","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56156.json","vanir_signatures_modified":"2026-08-12T15:15:46Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99","target":{"file":"api/src/main/java/run/halo/app/infra/utils/FileTypeDetectUtils.java"},"deprecated":false,"digest":{"line_hashes":["308286607768438965412485276009345035789","37784403832034737852672431338867462279","32938059038195226345115164646030276917","233859440219836383676336450205697770007","73648646302343415584109925127690901478","324161528823559354430801658746800708018"],"threshold":0.9},"id":"CVE-2024-56156-06438b5c","signature_type":"Line"},{"signature_version":"v1","source":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99","target":{"file":"application/src/test/java/run/halo/app/infra/utils/FileTypeDetectUtilsTest.java"},"deprecated":false,"digest":{"line_hashes":["283990517940916171028507367235448754478","248307788067699315672156709772948628269","208513776720255145549380681291241000073"],"threshold":0.9},"id":"CVE-2024-56156-464cd6f3","signature_type":"Line"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99","target":{"file":"application/src/main/java/run/halo/app/core/attachment/endpoint/LocalAttachmentUploadHandler.java"},"deprecated":false,"digest":{"line_hashes":["204324476436687121148206967278788817544","227023478197154213195959932288792639635","182486560640653852548608348551131289606","79553655478393974928705978424866690013","67163630478968246527885036921989899500","171028842582632146660905990712239524663","166014448017560817842382276839854753451","272074115240180419173523298677623408605","272200433090454593160104643163108705155","298620985275836919973151909909444526055","29596680874074686395157453116021420706","273958625069882193077661506878823816007","229274283530701941748879452614477120058","230583622959731293816297631898288171241","235346249049808512882120750812464200828","241087103939655665738487687577059988903","281430806937412667773803521286546049930","122304110473408577625958950104834330047","262486138101699323282289948102491539635","38463825445599489883340009872696268896"],"threshold":0.9},"id":"CVE-2024-56156-62c56dab"},{"target":{"file":"application/src/test/java/run/halo/app/infra/utils/FileTypeDetectUtilsTest.java","function":"detectFileExtensionTest"},"deprecated":false,"digest":{"function_hash":"284357765505324520087157028262349661615","length":367},"id":"CVE-2024-56156-afeacdd3","signature_type":"Function","signature_version":"v1","source":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99","target":{"file":"application/src/main/java/run/halo/app/core/attachment/endpoint/LocalAttachmentUploadHandler.java","function":"validateFile"},"deprecated":false,"digest":{"length":1207,"function_hash":"298649890399864920023408143606064532868"},"id":"CVE-2024-56156-b0eccf21"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L/E:P"}]}