← Vulnerability feed

Vulnerability record · CVE-2024-56828 · published 6 January 2025

CVE-2024-56828: 1000mz chestnutcms unrestricted file upload vulnerability

11000mz · Chestnutcms

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.

9.8 CVSS 3.1 Critical EPSS 0.88% · top 42.4% CWE-434 · Unrestricted file upload
9.8CVSS 3.1 base score
0.88%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-56828 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-574501000mz chestnutcms unrestricted file upload vulnerabilityChestnutCMS <=1.5.0 is vulnerable to File Upload via the Create template function.EPSS 0.56%7.5CVE-2024-574511000mz chestnutcms path traversal vulnerabilityChestnutCMS <=1.5.0 has a directory traversal vulnerability in contentcore.controller.FileController#getFileList, which allows attackers to view any …EPSS 0.87%7.5CVE-2024-574521000mz chestnutcms vulnerabilityChestnutCMS <=1.5.0 has an arbitrary file deletion vulnerability in contentcore.controller.FileController, which allows attackers to delete any file …EPSS 0.39%7.2CVE-2025-700731000mz chestnutcms code injection vulnerabilityAn issue in ChestnutCMS v.1.5.8 and before allows a remote attacker to execute arbitrary code via the template creation functionEPSS 0.68%5.3CVE-2025-55521000mz chestnutcms improper input validation vulnerabilityA vulnerability was found in ChestnutCMS up to 15.1. It has been declared as critical. This vulnerability affects unknown code of the file /dev-api/g…EPSS 0.49%5.3CVE-2025-29171000mz chestnutcms path traversal vulnerabilityA vulnerability, which was classified as problematic, was found in ChestnutCMS up to 1.5.3. Affected is the function readFile of the file /dev-api/cm…EPSS 0.80%5.3CVE-2025-20311000mz chestnutcms improper access control vulnerabilityA vulnerability classified as critical has been found in ChestnutCMS up to 1.5.2. This affects the function uploadFile of the file /dev-api/cms/file/…EPSS 0.34%5.1CVE-2025-20321000mz chestnutcms path traversal vulnerabilityA vulnerability classified as problematic was found in ChestnutCMS 1.5.2. This vulnerability affects the function renameFile of the file /cms/file/re…EPSS 0.50%

Source: NIST National Vulnerability Database (record CVE-2024-56828), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.