CVE-2021-22968
n/a https://github.com/concrete5/concrete5: Improper Control of Filename for Include/Require Statement in PHP Program
Check your servers for CVE-2021-22968
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-22968 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 3.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 88.6% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-98 Improper Control of Filename for Include/Require Statement in PHP Program
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
https://github.com/concrete5/concrete5
n/a
|
affected Concrete CMS version 9.0 and version 8.5.7
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-22968 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-22968RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-22968Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-22968
trivy image --scanners vuln IMAGE | grep CVE-2021-22968
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://documentation.concretecms.org/developers/introduction/version-history/857-release-notes documentation.concretecms.org
- https://hackerone.com/reports/1350444 hackerone.com
Source: the record CVE-2021-22968 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse