Image Optimizer, Resizer and CDN – Sirv: Code execution
Image Optimizer, Resizer and CDN – Sirv is affected by code execution. Exploitation requires at least contributor-level access. Successful exploitation can run attacker-controlled code in the WordPress hosting account.
- Component
- Image Optimizer, Resizer and CDN – Sirv
- Plugin slug
sirv- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Sep 06, 2024
- Weakness
- CWE-862 — Missing Authorization
This CVE was published Sep 06, 2024 and is one of 11 known issues for this plugin.
Update, patch or deactivate.
Update Image Optimizer, Resizer and CDN – Sirv to a release outside the affected range, or disable and remove it until a fixed version is available.
No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The Image Optimizer, Resizer and CDN – Sirv plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'sirv_save_prevented_sizes' function in all versions up to, and including, 7.2.7. This makes it possible for authenticated attackers, with Contributor-level access and above, to exploit the 'sirv_upload_file_by_chunks_callback' function, which lacks proper file type validation, allowing attackers to upload arbitrary files on the affected site's server which may make remote code execution possible.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H