PHPOffice PhpSpreadsheet up to 1.29.6/2.1.5/2.3.4/3.6.x Accounting.php cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.1 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHPOffice PhpSpreadsheet up to 1.29.6/2.1.5/2.3.4/3.6.x. It has been declared as problematic. Affected by this issue is some unknown functionality of the file /vendor/PHPOffice/PhpSpreadsheet/samples/Wizards/NumberFormat/Accounting.php. Executing a manipulation can lead to cross site scripting. This vulnerability is registered as CVE-2024-56366. It is possible to launch the attack remotely. No exploit is available. It is recommended to upgrade the affected component.
Details
A vulnerability classified as problematic was found in PHPOffice PhpSpreadsheet up to 1.29.6/2.1.5/2.3.4/3.6.x. This vulnerability affects some unknown processing of the file /vendor/PHPOffice/PhpSpreadsheet/samples/Wizards/NumberFormat/Accounting.php. The manipulation with an unknown input leads to a cross site scripting vulnerability. The CWE definition for the vulnerability is CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. As an impact it is known to affect integrity. CVE summarizes:
PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. Versions prior to 3.7.0, 2.3.5, 2.1.6, and 1.29.7 are vulnerable to unauthorized reflected cross-site scripting in the `Accounting.php` file. Using the `/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Accounting.php` script, an attacker can perform a cross-site scripting attack. Versions 3.7.0, 2.3.5, 2.1.6, and 1.29.7 contain a patch for the issue.
The advisory is available at github.com. This vulnerability was named CVE-2024-56366 since 12/20/2024. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Successful exploitation requires user interaction by the victim. Technical details are known, but there is no available exploit. This vulnerability is assigned to T1059.007 by the MITRE ATT&CK project.
By approaching the search of inurl:vendor/PHPOffice/PhpSpreadsheet/samples/Wizards/NumberFormat/Accounting.php it is possible to find vulnerable targets with Google Hacking.
Upgrading to version 1.29.7, 2.1.6, 2.3.5 or 3.7.0 eliminates this vulnerability. Applying the patch 700a80346be269af668914172bc6f4521982d0b4 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Vendor
Name
Version
- 1.29.0
- 1.29.1
- 1.29.2
- 1.29.3
- 1.29.4
- 1.29.5
- 1.29.6
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 3.0
- 3.1
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CNA CVSS-B Score: 🔍
CNA CVSS-BT Score: 🔍
CNA Vector: 🔍
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 4.1
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
Google Hack: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PhpSpreadsheet 1.29.7/2.1.6/2.3.5/3.7.0
Patch: 700a80346be269af668914172bc6f4521982d0b4
Timeline
12/20/2024 🔍01/03/2025 🔍
01/04/2025 🔍
01/04/2025 🔍
Sources
Product: github.comAdvisory: GHSA-c6fv-7vh8-2rhr
Status: Confirmed
CVE: CVE-2024-56366 (🔍)
GCVE (CVE): GCVE-0-2024-56366
GCVE (VulDB): GCVE-100-290170
Entry
Created: 01/04/2025 00:53Changes: 01/04/2025 00:53 (70)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.