CVE-2026-134765 in Kirbyinfo

Summary

by MITRE • 11/23/2026

Kirby 5.0.0 before 5.6.4 contains a race condition in Kirby\Api\Upload::processChunk() that allows authenticated users with upload permission to bypass SVG sanitization. Attackers can race concurrent chunked uploads sharing a filename to swap a benign SVG with a script-bearing SVG, executing stored cross-site scripting in the site origin.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified in Kirby CMS versions prior to 5.6.4 represents a critical security flaw rooted in a race condition within the file upload processing logic. Specifically, the issue resides in the Kirby\Api\Upload::processChunk() method, which handles the ingestion of multipart or chunked uploads. This architectural design allows authenticated users who possess standard upload permissions to exploit timing discrepancies during the handling of multiple concurrent requests that share an identical filename. The core technical flaw is a classic time-of-check-to-time-of-use (TOCTOU) race condition where the system performs security checks on one instance of a file while simultaneously processing or replacing it with another, thereby bypassing intended sanitization controls.

The operational impact of this vulnerability is severe as it enables stored cross-site scripting attacks within the context of the site origin. By racing concurrent chunked uploads that share the same filename, an attacker can effectively swap out a benign SVG image file for one containing malicious JavaScript code before the final assembly and validation steps are completed by the server. Because Kirby CMS typically allows users to upload various media types including images, this flaw specifically targets the SVG sanitization process which is often less rigorous than HTML filtering due to the complexity of parsing XML-based graphics formats. The successful exploitation results in the storage of a malicious payload on the web server, which is then served to other victims when they view or interact with the compromised content.

This vulnerability aligns closely with CWE-362, which describes concurrent execution using shared resources with an improper synchronization mechanism leading to race conditions. Furthermore, from a tactical perspective related to the MITRE ATT&CK framework, this exploit technique maps to T1059 Command and Scripting Interpreter under the Execution tactic, specifically leveraging stored scripts for persistence and impact. The ability to inject executable code into trusted content allows attackers to perform session hijacking, defacement, or further lateral movement within environments where users trust the CMS interface implicitly.

Mitigation strategies must prioritize immediate software updates as the primary defense vector. Administrators running Kirby versions earlier than 5.6.4 should upgrade to the latest patched release immediately to resolve the synchronization issues in the upload handler. For organizations unable to patch instantly, temporary mitigations include restricting file upload permissions to only those users who absolutely require them and implementing strict server-side validation that does not rely solely on client-side or pre-processing checks for SVG content. Additionally, deploying a Web Application Firewall with rules capable of detecting anomalous patterns in concurrent requests targeting the same resource can help mitigate exploitation attempts by identifying and blocking suspicious race condition behaviors before they result in successful code injection.

Responsible

VulnCheck

Reservation

11/22/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!