SQL Injection Affecting jackalope/jackalope-doctrine-dbal package, versions <1.7.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-JACKALOPEJACKALOPEDOCTRINEDBAL-2316997
  • published14 Dec 2021
  • disclosed14 Dec 2021
  • creditAlexander Schranz

Introduced: 14 Dec 2021

CVE-2021-43822  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade jackalope/jackalope-doctrine-dbal to version 1.7.4 or higher.

Overview

jackalope/jackalope-doctrine-dbal is a Jackalope Transport library for Doctrine DBAL

Affected versions of this package are vulnerable to SQL Injection if an attacker can specify a node name or query.

Note: if upgrade to fix version is not possible, you can escape all places where $property is used to filter sv:name in the class Jackalope\Transport\DoctrineDBAL\Query\QOMWalker: XPath::escape($property).

References

CVSS Base Scores

version 3.1