CVE-2024-56156

Source
https://cve.org/CVERecord?id=CVE-2024-56156
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56156.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56156
Aliases
  • GHSA-99mc-ch53-pqh9
Published
2025-04-25T15:08:00.942Z
Modified
2026-07-09T09:39:30.487381Z
Severity
  • 5.5 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56156.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Git / github.com/halo-dev/halo

Affected ranges

Type
GIT
Repo
https://github.com/halo-dev/halo
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:halo:halo:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.20.13"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.8
v0.0.9
v0.1
v0.1.1
v0.2.0
v0.2.1
v0.3.0
v0.4.0
v0.4.1
v1.*
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.1.0
v1.1.1
v1.2.0
v1.3.0
v1.3.0-beta.1
v1.3.0-beta.2
v1.3.0-beta.3
v1.3.0-beta.4
v1.3.1
v1.3.2
v1.4.0
v1.4.0-beta.1
v1.4.0-beta.2
v1.4.0-beta.3
v1.4.1
v1.4.11
v1.4.12
v1.4.13
v1.4.2
v1.4.3
v1.4.3-beta.1
v1.4.3-beta.2
v1.4.3-beta.3
v1.4.4
v1.4.5
v1.4.6
v1.4.7
v1.4.7-beta.1
v1.4.8
v1.4.9
v1.5.0-alpha.1
v2.*
v2.0.0
v2.0.0-alpha.1
v2.0.0-alpha.2
v2.0.0-alpha.3
v2.0.0-alpha.4
v2.0.0-beta.1
v2.0.0-beta.2
v2.0.0-rc.1
v2.0.0-rc.2
v2.1.0
v2.1.0-rc.1
v2.10.0
v2.10.0-alpha.1
v2.10.0-beta.1
v2.11.0
v2.11.0-rc.1
v2.11.0-rc.2
v2.12.0
v2.12.0-alpha.1
v2.12.0-alpha.2
v2.12.0-beta.1
v2.12.0-beta.2
v2.12.0-rc.1
v2.12.0-rc.2
v2.12.3
v2.13.0
v2.13.0-rc.1
v2.14.0
v2.14.0-rc.1
v2.15.0
v2.15.0-rc.1
v2.16.0
v2.16.0-rc.1
v2.16.0-rc.2
v2.17.0
v2.17.0-alpha.1
v2.17.0-alpha.2
v2.17.0-beta.1
v2.17.0-rc.1
v2.18.0
v2.18.0-rc.1
v2.19.0
v2.19.0-rc.1
v2.19.0-rc.2
v2.19.0-rc.3
v2.19.0-rc.4
v2.2.0
v2.20.0
v2.20.0-rc.1
v2.20.0-rc.2
v2.20.1
v2.20.10
v2.20.11
v2.20.12
v2.20.2
v2.20.3
v2.20.4
v2.20.5
v2.20.6
v2.20.7
v2.20.8
v2.20.9
v2.3.0
v2.3.0-rc.1
v2.4.0
v2.4.0-rc.1
v2.5.0
v2.5.0-rc.1
v2.5.0-rc.2
v2.5.1
v2.6.0
v2.6.0-rc.1
v2.7.0
v2.7.0-rc.1
v2.7.0-rc.2
v2.8.0
v2.8.0-rc.1
v2.8.0-rc.2
v2.9.0
v2.9.0-rc.1

Database specific

vanir_signatures_modified
"2026-07-09T09:39:30Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56156.json"
vanir_signatures
[
    {
        "id": "CVE-2024-56156-06438b5c",
        "digest": {
            "line_hashes": [
                "308286607768438965412485276009345035789",
                "37784403832034737852672431338867462279",
                "32938059038195226345115164646030276917",
                "233859440219836383676336450205697770007",
                "73648646302343415584109925127690901478",
                "324161528823559354430801658746800708018"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99",
        "deprecated": false,
        "target": {
            "file": "api/src/main/java/run/halo/app/infra/utils/FileTypeDetectUtils.java"
        }
    },
    {
        "id": "CVE-2024-56156-464cd6f3",
        "digest": {
            "line_hashes": [
                "283990517940916171028507367235448754478",
                "248307788067699315672156709772948628269",
                "208513776720255145549380681291241000073"
            ],
            "threshold": 0.9
        },
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99",
        "deprecated": false,
        "target": {
            "file": "application/src/test/java/run/halo/app/infra/utils/FileTypeDetectUtilsTest.java"
        }
    },
    {
        "id": "CVE-2024-56156-62c56dab",
        "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
        },
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99",
        "deprecated": false,
        "target": {
            "file": "application/src/main/java/run/halo/app/core/attachment/endpoint/LocalAttachmentUploadHandler.java"
        }
    },
    {
        "id": "CVE-2024-56156-afeacdd3",
        "digest": {
            "function_hash": "284357765505324520087157028262349661615",
            "length": 367.0
        },
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99",
        "deprecated": false,
        "target": {
            "function": "detectFileExtensionTest",
            "file": "application/src/test/java/run/halo/app/infra/utils/FileTypeDetectUtilsTest.java"
        }
    },
    {
        "id": "CVE-2024-56156-b0eccf21",
        "digest": {
            "function_hash": "298649890399864920023408143606064532868",
            "length": 1207.0
        },
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/halo-dev/halo/commit/24f8d7b57127e2607ec05adb7c912b3decddeb99",
        "deprecated": false,
        "target": {
            "function": "validateFile",
            "file": "application/src/main/java/run/halo/app/core/attachment/endpoint/LocalAttachmentUploadHandler.java"
        }
    }
]