Closed vkhramtsov closed 2 years ago
~Looking at the (probable) source of the advisory, there appears to be going something wrong with matching of the specific branches.~
Mmm, now that I look further I think the GitHub Advisory causes this.
@fabpot could you please comment here?
(I also notified Symfony's security team by email.)
Closing here meanwhile: the issue is not with roave/security-advisories
itself, but with https://github.com/advisories/GHSA-vvmr-8829-6whx having wrong version ranges.
Still, feel free to keep discussing this
As replied to the security email, that's a Github issue. I've tried to change the constraints to see if that fixes the issue, but I cannot do much more than that.
@fabpot could you change affected version like you do for symfony 6? For example >= 5.0.0, < 5.3.15
or =5.3.15
I have made the change, but apparently, there is a cache.
Problem still exists. @fabpot, @Ocramius do you have any possibility to push github advisories update or revoke current security advisory and create new one?
Sent message to github support about this issue.
We have reported the issue to Github already.
Sorry to comment on a closed issue, but I haven't found a better place for this yet: our Drupal updates are blocked because of this since Monday and I wonder, is there anything we can do to raise the attention at GitHub's site to actually deal with this?
@jurgenhaas from my point of view we can only write new emails to github support.
@vkhramtsov is that support@github.com ? If so, I would just send one too.
@jurgenhaas I cannot guarantee that it will work, but it could help
Well, the linked issue https://github.com/symfony/symfony/issues/45271 states, that @fabpot had fixed it, and it only requires a cache rebuild in this repo here, and that issue has also been closed, but it doesn't have to worked yet.
@jurgenhaas so now we have to wait for guthub security advisory update.
Unfortunately, there is nothing more we can do. We have created a Github support ticket almost immediately, that is more than 2 days ago now. I've tried to change the constraints on our side to make them more explicit. And I've just tweeted about the issue: https://twitter.com/fabpot/status/1489139646730747904
In any case, the solution in the meantime is to temporarily disable this package and do the update.
BTW, similar woes at https://github.com/laminas/laminas-form/issues/162#issuecomment-1028696649
I think the GitHub advisory distribution chain is a bit problematic as it is currently designed in GitHub itself, because these kinds of problems occur all the time, and going through their support seems to be a really inefficient modus operandi.
EDIT: ref https://twitter.com/Ocramius/status/1489146984363708418
Thanks for all the feedback. Another resolution might be to replace Roave/SecurityAdvisories with a forked version where we remove problematic entries. Problem being of course that we have to keep that up-to-date.
@jurgenhaas rather than doing that, I'd say that (assuming github advisories keep staying this unreliable long-term), https://github.com/Roave/SecurityAdvisoriesBuilder could be adjusted to have logic to exclude some advisories manually, via hardcoding.
From my PoV, it's an acceptable trade-off, to allow the community to continue benefiting from the exclusion range, even if something is awfully wrong in github.
The Generator
produced there can be filtered, and select advisories can be kicked out.
EDIT: please consider sending a patch (I'm currently swamped)
FYI it has been fixed on github side: https://github.com/advisories/GHSA-vvmr-8829-6whx
Can anyone verify if the version range now makes sense? https://github.com/Roave/SecurityAdvisories/commit/0c86f70adfb4d976d59e222d2c36590919158039
It is works at least in my setup. I'm going to check additionally tomorrow,.
Great, it works here too - so glad it's fixed.
Additional checks passed. Everything works as expected. Thanks everyone.
Meanwhile, WIP patch/discussion to allow for workarounds, should this occur again: https://github.com/Roave/SecurityAdvisoriesBuilder/pull/528
Hello.
We are still using
symfony
4.4.*
on our project, but commit https://github.com/Roave/SecurityAdvisories/commit/94a98d36257ecb87064ae581a2e04b381119ac57 (latest commit currently) conflicts with all versionssymfony/framework-bundle
from 4.4 branch (branch 4.4 still maintained https://symfony.com/releases/4.4). I suppose that this is because of https://symfony.com/blog/cve-2022-23601-csrf-token-missing-in-forms, but this is relates to package with verions 5 and 6.Would you be so kind to clarify, why do you have this in
composer.json
? Would you be so kind to fix this?Thank you in advance.