# CVE-2024-56828: File Upload vulnerability in ChestnutCMS through 1.5.0.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-06T00:00:00.000Z
- Modified: 2026-06-17T08:13:01.600Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

File Upload vulnerability in ChestnutCMS through 1.5.0. Based on the code analysis, it was determined that the /api/member/avatar API endpoint receives a base64 string as input. This string is then passed to the memberService.uploadAvatarByBase64 method for processing. Within the service, the base64-encoded image is parsed. For example, given a string like: data:image/html;base64,PGh0bWw+PGltZyBzcmM9eCBvbmVycm9yPWFsZXJ0KDEpPjwvaHRtbD4= the content after the comma is extracted and decoded using Base64.getDecoder().decode(). The substring from the 11th character up to the first occurrence of a semicolon (;) is assigned to the suffix variable (representing the file extension). The decoded content is then written to a file. However, the file extension is not validated, and since this functionality is exposed to the frontend, it poses significant security risks.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- 1000mz chestnutcms: up to 1.5.0

## References

- <https://github.com/Zerone0x00/CVE/blob/main/ChestnutCMS/CVE-2024-56828.md> (exploit, third-party-advisory)
- <https://gitee.com/liweiyi/ChestnutCMS> (product)
- <https://www.1000mz.com/> (product)

## Sources

- CVE List: [CVE-2024-56828](https://www.cve.org/CVERecord?id=CVE-2024-56828), CVE Terms of Use, modified 2025-01-14
- NVD: [CVE-2024-56828](https://nvd.nist.gov/vuln/detail/CVE-2024-56828), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56828 · Whole record: https://cve.day/CVE-2024-56828.json · Rebuilt by cve.day 2026-11-25T22:58:50.730Z
