Arbitrary File Upload Affecting cockpit-hq/cockpit package, versions <2.14.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-COCKPITHQCOCKPIT-16355597
  • published4 May 2026
  • disclosed29 Apr 2026
  • creditUnknown

Introduced: 29 Apr 2026

CVE-2026-38991  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade cockpit-hq/cockpit to version 2.14.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary File Upload via the _isFileTypeAllowed function in the Bucket component. An attacker can execute arbitrary code on the server by renaming files with a .php extension through specially crafted filenames. This is only exploitable if the attacker is authenticated.

CVSS Base Scores

version 4.0
version 3.1