Vulnerability Details : CVE-2022-31092
Potential exploit
Pimcore is an Open Source Data & Experience Management Platform. Pimcore offers developers listing classes to make querying data easier. This listing classes also allow to order or group the results based on one or more columns which should be quoted by default. The actual issue is that quoting is not done properly in both cases, so there's the theoretical possibility to inject custom SQL if the developer is using this methods with input data and not doing proper input validation in advance and so relies on the auto-quoting being done by the listing classes. This issue has been resolved in version 10.4.4. Users are advised to upgrade or to apple the patch manually. There are no known workarounds for this issue.
Vulnerability category: Sql Injection
Products affected by CVE-2022-31092
- cpe:2.3:a:pimcore:pimcore:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-31092
0.02%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 4 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-31092
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
1.6
|
5.9
|
GitHub, Inc. |
CWE ids for CVE-2022-31092
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-31092
-
https://github.com/pimcore/pimcore/commit/21559c6bf0e4e828d33ff7af6e88caecb5ac6549
[Security] SQL Injection in Data Hub GraphQL (#12444) · pimcore/pimcore@21559c6 · GitHubPatch;Third Party Advisory
-
https://github.com/pimcore/pimcore/pull/12444
[Security] SQL Injection in Data Hub GraphQL by mcop1 · Pull Request #12444 · pimcore/pimcore · GitHubIssue Tracking;Patch;Third Party Advisory
-
https://github.com/pimcore/pimcore/security/advisories/GHSA-gvmf-wcx6-p974
Improper quoting of columns when using setOrderBy() or setGroupBy() on listing classes · Advisory · pimcore/pimcore · GitHubExploit;Patch;Third Party Advisory
Jump to