SzafirHost RCE Lets Forged Native Libraries Bypass Signature Checks
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Jun 29, 2026

CERT Polska disclosed CVE-2026-13165, a high-severity remote code execution flaw in Krajowa Izba Rozliczeniowa's SzafirHost software that affects all versions before 1.2.2. The vulnerability arises from inconsistent parsing of a downloaded signed native library archive: signature verification uses JarFile to read the ZIP Central Directory, while extraction uses JarInputStream to process local file headers sequentially.
An attacker able to control the served archive can add a malicious DLL, SO, or DYLIB entry that does not appear in the Central Directory, allowing the archive to pass signature validation while the rogue library is still written to disk and potentially executed from the native temporary directory. The issue is tracked as CVE-2026-13165, carries a CVSS 4.0 score of 8.6, and was fixed in SzafirHost 1.2.2 after coordinated disclosure by CERT Polska; Mariusz Maik was credited with reporting the flaw.


