Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX vulnerability CVE-2021-43608 #1392

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Conversation

allanlaal
Copy link
Contributor

Doctrine DBAL 3.x before 3.1.4 allows SQL Injection: https://www.cve.org/CVERecord?id=CVE-2021-43608

Summary

Doctrine DBAL 3.x before 3.1.4 allows SQL Injection. The escaping of offset and length inputs to the generation of a LIMIT clause was not probably cast to an integer, allowing SQL injection to take place if application developers passed unescaped user input to the DBAL QueryBuilder or any other API that ultimately uses the AbstractPlatform::modifyLimitQuery API.

Type of change

  • [ x] minor Bug fix (non-breaking change which fixes an issue)

Checklist

  • [+] Existing tests have been adapted and/or new tests have been added
  • [-] Add a CHANGELOG.md entry
  • [-] Update the README.md
  • [+] Code style has been fixed via composer fix-style

Doctrine DBAL 3.x before 3.1.4 allows SQL Injection: https://www.cve.org/CVERecord?id=CVE-2021-43608
@mfn
Copy link
Collaborator

mfn commented Nov 17, 2022

👎🏼

AFAIK, we're not using any of this.

I know by bumping this, we force the users of this library to a higher version and improve overall security.

But this is an optional library, as good as bad as anyones else library and I believe the decision should be upon this who manage their application (anyone could just add that version constraint and be as safe as they want).

I therefore think we should not enforce this, we're just another library and the pool, no code in this library (AFAIK) is affected by this.

WDYT?

@allanlaal
Copy link
Contributor Author

bumping 3.0.0 to a more specific starting versions should not affect the stability

true, its a -dev only plugin, but all teh code scanners still cry 😄

@barryvdh
Copy link
Owner

barryvdh commented Feb 7, 2024

According to #1513 the 3.1 is actually the minimum, so it couldn't really hurt to just skip to 3.1.4 either..

@barryvdh barryvdh merged commit f3ad134 into barryvdh:master Feb 7, 2024
33 checks passed
d3v2a pushed a commit to d3v2a/laravel-ide-helper that referenced this pull request Feb 16, 2024
Doctrine DBAL 3.x before 3.1.4 allows SQL Injection: https://www.cve.org/CVERecord?id=CVE-2021-43608

Co-authored-by: Barry vd. Heuvel <barry@fruitcake.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants