Skip to content

CVE-2021-22968 Improper file handling in concrete5/core

HighCVSS 7.2 EPSS 3.2%
Published
Updated
Exploit status
No public exploit known
Technology
PHP

Description

A bypass of adding remote files in Concrete CMS (previously concrete5) File Manager leads to remote code execution in Concrete CMS (concrete5) versions 8.5.6 and below.The external file upload feature stages files in the public directory even if they have disallowed file extensions. They are stored in a directory with a random name, but it's possible to stall the uploads and brute force the directory name. You have to be an admin with the ability to upload files, but this bug gives you the ability to upload restricted file types and execute them depending on server configuration.To fix this, a check for allowed file extensions was added before downloading files to a tmp directory.Concrete CMS Security Team gave this a CVSS v3.1 score of 5.4 AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:NThis fix is also in Concrete version 9.0.0

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
concrete5/core(Packagist) < 8.5.7; = 8.2.0; = 8.2.0RC2; = 8.2.1 +21 more 8.5.7 Fixed
concretecms concrete cms < 8.5.7 8.5.7 Fixed

Affected products

ProductAffected versionsFixed in
concrete5/core(Packagist) < 8.5.7 8.5.7
concrete5/core(Packagist) = 8.2.0 No fix listed
concrete5/core(Packagist) = 8.2.0RC2 No fix listed
concrete5/core(Packagist) = 8.2.1 No fix listed
concrete5/core(Packagist) = 8.3.0 No fix listed
concrete5/core(Packagist) = 8.3.1 No fix listed
concrete5/core(Packagist) = 8.3.2 No fix listed
concrete5/core(Packagist) = 8.4.0 No fix listed
concrete5/core(Packagist) = 8.4.0RC3 No fix listed
concrete5/core(Packagist) = 8.4.0RC4 No fix listed
concrete5/core(Packagist) = 8.4.1 No fix listed
concrete5/core(Packagist) = 8.4.2 No fix listed
concrete5/core(Packagist) = 8.4.3 No fix listed
concrete5/core(Packagist) = 8.4.4 No fix listed
concrete5/core(Packagist) = 8.4.5 No fix listed
concrete5/core(Packagist) = 8.5.0 No fix listed
concrete5/core(Packagist) = 8.5.0RC1 No fix listed
concrete5/core(Packagist) = 8.5.0RC2 No fix listed
concrete5/core(Packagist) = 8.5.1 No fix listed
concrete5/core(Packagist) = 8.5.2 No fix listed
concrete5/core(Packagist) = 8.5.3 No fix listed
concrete5/core(Packagist) = 8.5.4 No fix listed
concrete5/core(Packagist) = 8.5.5 No fix listed
concrete5/core(Packagist) = 8.5.6 No fix listed
concrete5/core(Packagist) = 8.5.6RC1 No fix listed
Show 1 more
ProductAffected versionsFixed in
concretecms concrete cms < 8.5.7 8.5.7

References