# CVE-2026-38991: Cockpit Vulnerable to Unrestricted Upload of File with Dangerous Type

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-29T00:00:00.000Z
- Modified: 2026-06-17T10:41:49.310Z
- Also known as: GHSA-j2rx-4jg9-79mw
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

Cockpit 2.13.5 and earlier is affected by a misconfiguration within the Bucket component _isFileTypeAllowed function where a specially crafted filename bypasses an extension filter. This allows an authenticated attacker to rename arbitrary files with the .php file extension enabling arbitrary code to be executed on the underlying server.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cockpit-hq/cockpit (Packagist): before 2.14.0

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://felsec.com/posts/cockpit-cms-2.13.5-multi-vulns/> (exploit)
- <https://github.com/Cockpit-HQ/Cockpit/releases/tag/2.14.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-38991> (advisory)
- <https://felsec.com/posts/cockpit-cms-2.13.5-multi-vulns> (web)
- <https://github.com/Cockpit-HQ/Cockpit> (package)

## Sources

- CVE List: [CVE-2026-38991](https://www.cve.org/CVERecord?id=CVE-2026-38991), CVE Terms of Use, modified 2026-04-29
- GitHub Advisory Database: [GHSA-j2rx-4jg9-79mw](https://github.com/advisories/GHSA-j2rx-4jg9-79mw), CC-BY-4.0, modified 2026-05-06
- NVD: [CVE-2026-38991](https://nvd.nist.gov/vuln/detail/CVE-2026-38991), Public domain, modified 2026-06-17

---

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