MediumGHSA-v68g-62v9-39w5CVE-2022-29858
Unpublished, protected files can be published via shortcode
Published 29 Jun 2022 · Updated 21 Feb 2024
Affected package
silverstripe/assetsComposer
- Affected
- >=1.0.0 <1.10.1
- Fixed in
- 1.10.1
Update to the fixed version for your release line, for example:
composer require silverstripe/assets:^1.10.1Details
Silverstripe silverstripe/assets through 1.10 is vulnerable to improper access control that allows protected images to be published by changing an existing image short code on website content. Draft protected images can be published by changing an existing image shortcode on website content to match the ID of the draft protected image and then publishing the website content.
Is GHSA-v68g-62v9-39w5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/assets, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-29858
- Linkgithub.com/silverstripe/silverstripe-assets/commit/5f6a73b010c01587ffbfb954441f6b7cbb54e767
- Linkforum.silverstripe.org/c/releases
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2022-29858.yaml
- Linkhuntr.dev/bounties/90e17d95-9f2f-44eb-9f26-49fa13a41d5a
- Linkwww.silverstripe.org/blog/tag/release
- Linkwww.silverstripe.org/download/security-releases
- Linkwww.silverstripe.org/download/security-releases/cve-2022-29858
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.