CVE-2026-13165: CWE-434 Unrestricted Upload of File with Dangerous Type in Krajowa Izba Rozliczeniowa SzafirHost
SzafirHost verifies the downloaded native library archive with one JarFile parser (reading the Central Directory) but extracts native libraries with JarInputStream parser (reading sequentially from local file headers). An attacker who controls the served archive can insert a malicious DLL/SO/DYLIB as a local-file-header entry between the last legitimate entry and the Central Directory, without adding it to the Central Directory. The signature verifier never sees the injected entry and accepts the archive as validly signed; the extractor reads it sequentially and writes the attacker library to the native temp directory with no hash check), while the archive-size check still passes. This can lead to remote code execution. This issue was fixed in version 1.2.2.
AI Analysis
Technical Summary
The vulnerability in SzafirHost arises from inconsistent parsing methods during archive verification and extraction. The signature verification relies on the Central Directory entries, while extraction reads local file headers sequentially. An attacker controlling the served archive can inject a malicious native library (DLL/SO/DYLIB) as a local-file-header entry that is not present in the Central Directory. This entry bypasses signature verification but is extracted and written to the native temp directory without integrity checks, enabling remote code execution. The vulnerability is tracked as CVE-2026-13165 with a CVSS 4.0 score of 8.6 (high severity). It was fixed in SzafirHost version 1.2.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary native code remotely by injecting a malicious native library into the archive that bypasses signature verification and is extracted without hash validation. This can lead to full system compromise on affected installations of SzafirHost prior to version 1.2.2.
Mitigation Recommendations
Upgrade SzafirHost to version 1.2.2 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 1.2.2.
CVE-2026-13165: CWE-434 Unrestricted Upload of File with Dangerous Type in Krajowa Izba Rozliczeniowa SzafirHost
Description
SzafirHost verifies the downloaded native library archive with one JarFile parser (reading the Central Directory) but extracts native libraries with JarInputStream parser (reading sequentially from local file headers). An attacker who controls the served archive can insert a malicious DLL/SO/DYLIB as a local-file-header entry between the last legitimate entry and the Central Directory, without adding it to the Central Directory. The signature verifier never sees the injected entry and accepts the archive as validly signed; the extractor reads it sequentially and writes the attacker library to the native temp directory with no hash check), while the archive-size check still passes. This can lead to remote code execution. This issue was fixed in version 1.2.2.
CVSS v4.0
Score 8.6high
Affected software
pkg:maven/krajowa-izba-rozliczeniowa/szafirhostRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in SzafirHost arises from inconsistent parsing methods during archive verification and extraction. The signature verification relies on the Central Directory entries, while extraction reads local file headers sequentially. An attacker controlling the served archive can inject a malicious native library (DLL/SO/DYLIB) as a local-file-header entry that is not present in the Central Directory. This entry bypasses signature verification but is extracted and written to the native temp directory without integrity checks, enabling remote code execution. The vulnerability is tracked as CVE-2026-13165 with a CVSS 4.0 score of 8.6 (high severity). It was fixed in SzafirHost version 1.2.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary native code remotely by injecting a malicious native library into the archive that bypasses signature verification and is extracted without hash validation. This can lead to full system compromise on affected installations of SzafirHost prior to version 1.2.2.
Mitigation Recommendations
Upgrade SzafirHost to version 1.2.2 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated in the vendor advisory, but the fix is confirmed in version 1.2.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-06-24T13:07:31.310Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4274e727e9c79719eeb054
Added to database: 06/29/2026, 13:36:39 UTC
Last enriched: 06/29/2026, 13:51:30 UTC
Last updated: 06/29/2026, 22:29:24 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.