# CVE-2021-43822: SQL injection in jackalope/jackalope-doctrine-dbal

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **CWE:** CWE-89
- **Aliases:** GHSA-ph98-v78f-jqrm
- **Published:** 2021-12-13T19:50:11.000Z
- **Modified:** 2026-07-08T06:27:47.086Z

## Who should check

- Projects that depend on Packagist package jackalope/jackalope-doctrine-dbal (\< 1.7.4)
- Anyone running jackalope-doctrine-dbal \< 1.7.4

## Description

Jackalope Doctrine-DBAL is an implementation of the PHP Content Repository API (PHPCR) using a relational database to persist data. In affected versions users can provoke SQL injections if they can specify a node name or query. Upgrade to version 1.7.4 to resolve this issue. If that 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)\`. Node names and xpaths can contain \`"\` or \`;\` according to the JCR specification. The jackalope component that translates the query object model into doctrine dbal queries does not properly escape the names and paths, so that a accordingly crafted node name can lead to an SQL injection. If queries are never done from user input, or if you validate the user input to not contain \`;\`, you are not affected.

## Affected and fixed versions

- Packagist `jackalope/jackalope-doctrine-dbal`: affected \< 1.7.4; fixed 1.7.4 (osv)
- jackalope-doctrine-dbal: \< 1.7.4 (cvelist)

## Mitigation

- Upgrade jackalope/jackalope-doctrine-dbal to 1.7.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43822. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43822.md
Affected: jackalope/jackalope-doctrine-dbal < 1.7.4
Fixed in: 1.7.4

Steps:
1. Search this machine and project for jackalope/jackalope-doctrine-dbal (Packagist), jackalope-doctrine-dbal: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43822 being exploited?

There is no confirmed exploitation: CVE-2021-43822 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-43822?

High: CVSS 8.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2021-43822?

jackalope/jackalope-doctrine-dbal \< 1.7.4.

### Is there a fix for CVE-2021-43822?

Yes. Fixed in 1.7.4. Upgrade jackalope/jackalope-doctrine-dbal to 1.7.4 or later.

### How do I check if I'm affected by CVE-2021-43822?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/jackalope/jackalope-doctrine-dbal/security/advisories/GHSA-ph98-v78f-jqrm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43822>
- patch: <https://github.com/jackalope/jackalope-doctrine-dbal/commit/9d179a36d320330ddb303ea3a7c98d3a33d231db>
- other: <https://github.com/jackalope/jackalope-doctrine-dbal>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43822>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ph98-v78f-jqrm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43822> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43822>
