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

[4.x] / [5.x]: Update Yii requirement due to CVE in Yii #15124

Closed
GewoonRoy opened this issue Jun 3, 2024 · 6 comments
Closed

[4.x] / [5.x]: Update Yii requirement due to CVE in Yii #15124

GewoonRoy opened this issue Jun 3, 2024 · 6 comments

Comments

@GewoonRoy
Copy link

What happened?

Description

Is it possible to update yiisoft/yii2 to 2.0.50. the versions <= 2.0.49 are marked as a CVE vulnerability.

GHSA-cjcc-p67m-7qxm

Steps to reproduce

  1. Install composer

Craft CMS version

4 / 5

PHP version

8.1 / 8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@GewoonRoy GewoonRoy changed the title [4.x]: Update Yii requirement due to CVE in Yii [4.x] / [5.x]: Update Yii requirement due to CVE in Yii Jun 3, 2024
@philipzaengle
Copy link
Contributor

This would be helpful for us, too -- it's getting flagged in our SOC2 audit systems.

@tomdavies
Copy link

looks like this is already fixed in 4.10

#15097 (comment)

brandonkelly added a commit that referenced this issue Jun 3, 2024
@brandonkelly
Copy link
Member

The specific vulnerability fixed in Yii 2.0.50 is based on a similar CVE for Craft, which we fixed in 4.4.15 (GHSA-4w8r-3xrw-v25g). So from a purely security standpoint, there’s no need to worry about this :)

That said, I understand this is going to cause headaches with roave/security-advisories and other auditing services, so we are fast-tracking Craft 4.10 and 5.2, which contain the update. Those were previously planned for later this month, but we’re going to push some of the planned improvements to the following releases.

Craft 4.10.0-beta.1 and 5.2.0-beta.1 are both tagged now, with Yii 2.0.50. Updating to them should be pretty safe. The main reason for the beta is because there are some new UI strings we need to get translated before the GA releases.

You can update to them by changing your craftcms/cms constraint in composer.json to:

// craft 4.10
"craftcms/cms": "^4.10.0-beta.1",

// craft 5.2
"craftcms/cms": "^5.2.0-beta.1",

@sfsmfc
Copy link

sfsmfc commented Jun 11, 2024

Are there any plans to backport this "fix" to version 4.9?

@brandonkelly
Copy link
Member

No, Yii updates tend to be pretty involved, so they warrant a minor version bump.

@brandonkelly
Copy link
Member

brandonkelly commented Jun 12, 2024

Craft 4.10.0 and 5.2.0 are out with Yii 2.0.50 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants