Lucene search

K
osvGoogleOSV:GHSA-R7CJ-8HJG-X622
HistoryNov 16, 2021 - 5:25 p.m.

DBAL 3 SQL Injection Security Vulnerability

2021-11-1617:25:57
Google
osv.dev
10
doctrine dbal
sql injection
vulnerability
upgrade
cve-2021-43608
security

EPSS

0.002

Percentile

53.8%

We have released a new version Doctrine DBAL 3.1.4 that fixes a critical SQL injection vulnerability in the LIMIT clause generation API provided by the Platform abstraction.

We advise everyone using Doctrine DBAL 3.0.0 up to 3.1.3 to upgrade to 3.1.4 immediately.

The vulnerability can happen when unsanitized input is passed to many APIs in Doctrine DBAL and ORM that ultimately end up calling AbstractPlatform::modifyLimitQuery.

As a workaround you can cast all limit and offset parameters to integers before passing them to Doctrine APIs.

This vulnerability has been assigned CVE-2021-43608.