CVE-2023-6551
PHP vulnerability analysis and mitigation

Overview

CVE-2023-6551 is a vulnerability discovered in the class.upload.php library, an open-source project maintained by Colin Verot. The vulnerability was identified and disclosed on January 4, 2024. The issue affects all versions of the library and involves insufficient validation of uploaded files (CERT Advisory).

Technical details

The vulnerability is classified as an Unrestricted Upload of File with Dangerous Type (CWE-434). The library does not perform adequate in-depth checks on uploaded files, which can lead to a stored Cross-Site Scripting (XSS) vulnerability when using the default configuration. The issue has been assigned a CVSS v3.1 base score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

When exploited, this vulnerability could allow an attacker to execute stored XSS attacks through uploaded files. This poses a security risk particularly when the library is used with its default configuration, potentially leading to unauthorized script execution in the context of other users' browsers (CERT Advisory).

Mitigation and workarounds

The vendor has acknowledged the vulnerability but has decided not to remove it from the library. Instead, developers are advised to implement specific security measures: use extension whitelisting for uploaded files and configure the server to always provide content-type based on file extensions. These guidelines have been added to the project's README documentation (CERT Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management