RCE via .phar upload in verot/class.upload.php
CVE-2019-19576 affects class.upload.php in verot.net class.upload before 1.0.3 and 2.x before 2.0.4. The library’s dangerous-extension filtering omitted the .phar extension, allowing an attacker to upload a PHAR file where the application relied on class.upload.php to block executable or otherwise unsafe file types. In products that used this library for upload handling, including the K2 extension for Joomla! and other software, this could permit a malicious .phar payload to be accepted and subsequently processed or exposed in a way that leads to code execution.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If a reachable upload workflow uses the vulnerable library and the uploaded .phar file can be stored in a web-accessible or otherwise executable/processable location, an attacker may achieve remote code execution. At minimum, the flaw bypasses intended upload restrictions for dangerous file types; in affected deployments this can result in full compromise of the web application context.
If you can’t patch tonight, do this now.
Until patched, disable or tightly restrict file-upload functionality that relies on the vulnerable library. Enforce strict server-side allowlisting of permitted extensions and MIME types, explicitly block .phar uploads, store uploads outside the web root, and prevent execution or interpreter handling of uploaded content in upload directories. Where possible, harden web-server configuration so uploaded files cannot be executed.
Patch, then assume compromise.
Upgrade verot/class.upload.php to 1.0.3 or later on the 1.x branch, or 2.0.4 or later on the 2.x branch. Also review dependent products such as Joomla! extensions that bundle or vendor this library to ensure the embedded copy is updated. Validate that upload allowlists explicitly reject .phar and other executable/script-capable formats as appropriate for the application.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.