PT-2021-23957

CVE-2021-43822

·

Published

2021-12-13

·

Updated

2021-12-17

Description by

CVSS 3.1
8.5
High
MetricsAV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Jackalope Doctrine-DBAL versions prior to 1.7.4
Description: The issue allows users to provoke SQL injections if they can specify a node name or query. This is because the jackalope component that translates the query object model into doctrine dbal queries does not properly escape the names and paths. Node names and xpaths can contain " or ; according to the JCR specification. If queries are never done from user input, or if you validate the user input to not contain ;, you are not affected.
Recommendations: Upgrade to version 1.7.4 to resolve this issue. If that is not possible, escape all places where $property is used to filter sv:name in the class JackalopeTransportDoctrineDBALQueryQOMWalker: XPath::escape($property). As a temporary workaround, consider validating user input to not contain ; to minimize the risk of exploitation.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-PH98-V78F-JQRM
Found an issue in the description? Have something to add? Feel free to write us 👾