Advisory

GHSA-j2rx-4jg9-79mw

Also known as: CVE-2026-38991

Summary

Cockpit Vulnerable to Unrestricted Upload of File with Dangerous Type

Details

Cockpit versions 2.13.5 and earlier are 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-29 18:31 UTC
Modified
2026-05-06 23:26 UTC

Affected packages and fixes

cockpit-hq/cockpit

Packagist · All systems

Affected

  • introduced 0, fixed 2.14.0 (ecosystem)

Fixed versions

2.14.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences