CVE-2025-62417: Bagisto/bagisto Bagisto Has CSV Formula Injection Vulnerability
CRITICALCVE-2025-62417 is a CRITICAL (CVSS 9.0) bagisto has csv formula injection vulnerability (CWE-1236: Improper Neutralization of Formula Elements in a CSV File) affecting Bagisto/bagisto libraries in the Packagist ecosystem. The issue involves bagisto has csv formula injection in create new product. Remediation is available by upgrading affected packages to version 2.3.8.
CVE-2025-62417 at a Glance
Security Impact
CVSS: 9.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2025-62417
To remediate this vulnerability, upgrade all affected Bagisto/bagisto dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bagisto/bagisto to 2.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bagisto/bagisto
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-62417, inspect your project dependencies for Bagisto/bagisto:
inspect dependencies for bagisto/bagisto
Analyze the terminal output to locate any version of Bagisto/bagisto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1236: Improper Neutralization of Formula Elements in a CSV File, where the product saves user-provided information into a comma-separated value (csv) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product. In Bagisto/bagisto, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-62417 Affected Bagisto/bagisto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bagisto/bagisto
|
Packagist |
< 2.3.8
|
2.3.8
|
References
Frequently Asked Questions
What is CVE-2025-62417?
Which Bagisto/bagisto versions are affected?
What version fixes CVE-2025-62417?
Is bagisto/bagisto affected?
What is the CVSS score of CVE-2025-62417?
What CWE is associated with CVE-2025-62417?
How can I check Packagist dependencies for CVE-2025-62417?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jqrp-58fv-w8cq",
"modified" : "2025-10-16T20:48:11Z",
"published" : "2025-10-16T20:48:11Z",
"aliases" : [ "CVE-2025-62417" ],
"summary" : "bagisto has CSV Formula Injection in Create New Product",
"details" : "### Summary\nWhen product data that begins with a spreadsheet formula character (for example =, +, -, or @) is accepted and later exported or saved into a CSV and opened in spreadsheet software, the spreadsheet will interpret that cell as a formula. This allows an attacker to supply a CSV field (e.g., product name) that contains a formula which may be evaluated by a victim’s spreadsheet application — potentially leading to data exfiltration and remote command execution (via older Excel exploits / OLE/cmd constructs or Excel macros).\n\n### Details\nSpreadsheet applications treat cell text that begins with characters =, +, -, @ as formulas. If unescaped, spreadsheet will interpret and evaluate the content when the file is opened. The application fails to neutralize/escape leading formula characters when generating CSV or when accepting CSV import fields for display/export.\n\n### PoC\nInsert CSV formula to the product name field, and save the changes. Export it to CSV file, open it and the calc.exe will be executed. Other CSV export functions are affected as well.\nhttp://127.0.0.1/admin/catalog/products/edit/1\n<img width=\"408\" height=\"302\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2c6fd1e3-6725-4bf4-9c64-20cd57f4e279\" />\n<img width=\"1696\" height=\"854\" alt=\"image\" src=\"https://github.com/user-attachments/assets/911a69ae-65ac-4a8a-ad8e-63571a9610c8\" />\n\n### Impact\nData exfiltration: Using spreadsheet functions (e.g., WEBSERVICE, HYPERLINK, or concatenation to create requests) on victims' machines that make network calls.\nRemote command execution: In some historical cases, specially crafted formulas and older Excel behaviors can lead to RCE. Modern Excel hardens many of these, but risk remains depending on environment.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "bagisto/bagisto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.3.7"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/bagisto/bagisto/security/advisories/GHSA-jqrp-58fv-w8cq"
}, {
"type" : "WEB",
"url" : "https://github.com/bagisto/bagisto/commit/8076c708498a0187bc952d5f5f705e0cb1919682"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bagisto/bagisto"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1236" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-16T20:48:11Z",
"nvd_published_at" : null
}
}