-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
security-csrf 2.8 depends on unsupported & vulnerable security-core 3.0 #27507
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
Comments
If you want to stay on the 2.8 LTS while using component packages rather than the fullstack, I suggest you to install the symfony/lts package. Our handling of non-fullstack projects regarding LTS was not that good for 2.8, due to the fact that 99% (that number is a guess, not an exact number) of Symfony projects were fullstack ones at that time. and composer does not know the concept of maintained vs unmaintained version, so we cannot tell it to prefer 2.8.x versions over 3.0.x versions due to that. And if you want prevent installing vulnerable versions during a composer update, you might also want to use https://packagist.org/packages/roave/security-advisories |
would you mind sending a PR? |
…hank) This PR was merged into the 2.8 branch. Discussion ---------- Fix security-core cross-dependencies, fixes #27507 | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27507 | License | MIT | Doc PR | - Based on earlier changes in #27295 Commits ------- 725d774 Fix security-core cross-dependencies, fixes #27507
symfony/symfony#27507 https://symfony.com/blog/cve-2018-11386-denial-of-service-when-using-pdosessionhandler Signed-off-by: Ankit Pokhrel <ankitpokhrel@gmail.com>
Symfony version(s) affected: 2.8
Description
Installing version 2.8 of
symfony/security-csrf
by itself installs an unsupported and vulnerable version ofsymfony/security-core
.The following line causes composer to prefer the unsupported 3.0 version of
symfony/security-core
:symfony/src/Symfony/Component/Security/Csrf/composer.json
Line 22 in efe9beb
The last released version on the 3.0 branch is 3.0.9, which is listed as vulnerable: https://github.com/FriendsOfPHP/security-advisories/blob/e9093b7fc2649d99119cf2540ee6a66471c32480/symfony/security-core/CVE-2018-11407.yaml
How to reproduce
composer init
)composer require 'symfony/security-csrf:^2.8'
Result:
Possible Solution
Loosen the dep to allow any 3.x version or disallow the dep on 3.0, (but that may be backwards breaking.)
The text was updated successfully, but these errors were encountered: