# CVE-2026-41247: elFinder: Command injection in resize background color parameter when using ImageMagick CLI

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.63%, higher than 76% of CVEs (2026-12-02)
- Published: 2026-04-17T22:33:51.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-8q4h-8crm-5cvc
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.67, elFinder contains a command injection vulnerability in the resize command. The bg (background color) parameter is accepted from user input and passed through image resize/rotate processing. In configurations that use the ImageMagick CLI backend, this value is incorporated into shell command strings without sufficient escaping. An attacker able to invoke the resize command with a crafted bg value may achieve arbitrary command execution as the web server process user. This vulnerability is fixed in 2.1.67.

(As written by CVE List.)

## Affected

- Studio-42 elFinder: < 2.1.67
- studio-42/elfinder (Packagist): before 2.1.67
- std42 elfinder: before 2.1.67

## Every score

- GitHub_M: CVSS:4.0 8.9 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Studio-42/elFinder/security/advisories/GHSA-8q4h-8crm-5cvc> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41247> (advisory)
- <https://github.com/Studio-42/elFinder> (package)

## Sources

- CVE List: [CVE-2026-41247](https://www.cve.org/CVERecord?id=CVE-2026-41247), CVE Terms of Use, modified 2026-04-25
- GitHub Advisory Database: [GHSA-8q4h-8crm-5cvc](https://github.com/advisories/GHSA-8q4h-8crm-5cvc), CC-BY-4.0, modified 2026-05-06
- NVD: [CVE-2026-41247](https://nvd.nist.gov/vuln/detail/CVE-2026-41247), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41247 · Whole record: https://cve.day/CVE-2026-41247.json · Rebuilt by cve.day 2026-11-25T22:59:19.408Z
