Miggo Logo

CVE-2021-37702:
Improper Neutralization of Formula Elements in a CSV File in pimcore/pimcore

8.8

CVSS Score
3.1

Basic Information

EPSS Score
0.06615%
Published
8/30/2021
Updated
2/1/2023
KEV Status
No
Technology
TechnologyPHP

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
pimcore/pimcorecomposer< 10.1.110.1.1

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper neutralization of formula elements during CSV export. The patch in PR #9992 adds an escapeCsvFormula() method to Service.php and applies it in the Csv exporter. The vulnerable function is the export method in Csv.php, which previously wrote raw values without escaping. The fix explicitly adds formula escaping in this export path, confirming this was the vulnerable entry point.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t **t* O*j**t *SV import *llows *ormul*r inj**tion. ### P*t***s Pro*l*m is p*t**** in **.*.* ### Work*roun*s *pply *ttps://*it*u*.*om/pim*or*/pim*or*/pull/****.p*t** ### R***r*n**s *ttps://*w*.mitr*.or*/**t*/***initions/****.*tml

Reasoning

T** vuln*r**ility st*ms *rom improp*r n*utr*liz*tion o* *ormul* *l*m*nts *urin* *SV *xport. T** p*t** in PR #**** ***s *n `*s**p**sv*ormul*()` m*t*o* to `S*rvi**.p*p` *n* *ppli*s it in t** *sv *xport*r. T** vuln*r**l* *un*tion is t** `*xport` m*t*o*