Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain control of served archive (server compromise or MITM)
-
DeliveryInject malicious native lib as local-header-only entry
-
ExploitSignature check reads Central Directory and accepts archive
-
ExecutionUser runs SzafirHost, extractor writes lib to temp dir
-
ImpactNative library loaded, arbitrary code executes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control the served native-library archive (a compromised KIR distribution server or a man-in-the-middle position on the download channel) and to craft a ZIP/JAR with an extra local-file-header entry that is omitted from the Central Directory so it bypasses JarFile signature verification while remaining visible to the JarInputStream extractor. It further requires victim user interaction (CVSS UI:A) - the user must run SzafirHost such that it downloads and extracts the archive into the native temp directory. Limiting factors: the attack does not work against an attacker who cannot influence the archive source, and the archive-size check must still pass (which the appended entry satisfies); no authentication on the target host is required (PR:N). |
| Impact | The supplied CVSS 4.0 base score is 8.6 (High) with vector AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H, indicating network-reachable, unauthenticated, low-complexity attack with high confidentiality/integrity/availability impact but requiring active user interaction (UI:A) and an attacker-controlled archive source. There is no EPSS score, no POC, and no CISA KEV listing in the provided data, so exploitation signals are limited to the technical write-up by CERT-PL. The practical limiting factor is meaningful: the attacker must control the served archive (e.g., compromised distribution server or man-in-the-middle on the download channel) AND the user must trigger the library download/extraction, which lowers real-world likelihood relative to the high impact. This is a credible high-severity issue worth prompt patching for SzafirHost users, but absence of EPSS/KEV/POC suggests it is not currently subject to widespread automated exploitation - treat as a targeted, high-impact supply-chain-style RCE rather than a mass-exploited bug. |
| Exploit ScenarioDerived | An attacker who controls or intercepts the archive distribution channel appends a malicious native library as a local-file-header entry between the last legitimate entry and the Central Directory, leaving the Central Directory (and thus the signature) untouched. When a victim runs SzafirHost and it downloads and extracts the archive, the signature verifier accepts it as validly signed while the sequential extractor writes the attacker's DLL/SO/DYLIB to the native temp directory and loads it, executing attacker code. No public POC is identified in the available data, but the low attack complexity makes exploitation straightforward for an actor holding the required network/server position. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 29, 2026
Remote code execution in SzafirHost (KIR's Szafir electronic-signature host application) arises from a ZIP/JAR parser-confusion flaw: signature verification reads the archive's Central Directory while extraction reads local file headers sequentially, letting an attacker who controls the served native-library archive smuggle an unsigned malicious DLL/SO/DYLIB past the signature check. Versions prior to 1.2.2 are affected; the injected library is written to the native temp directory and loaded, yielding code execution on the victim's machine. No public exploit identified at time of analysis, and the flaw is not listed in CISA KEV.
RemediationAI
Vendor-released patch: 1.2.2 - upgrade SzafirHost to version 1.2.2 or later, which corrects the parser inconsistency so signature verification and extraction operate on the same archive view. Until upgraded, ensure native-library archives are retrieved only over authenticated TLS channels from KIR's legitimate endpoints to reduce the chance of an attacker substituting the served archive, and restrict or monitor write access to the native temp directory where libraries are staged; note these are partial compensating controls that do not close the parsing differential itself and may not prevent a compromised-server scenario. Refer to the CERT-PL advisory at https://cert.pl/posts/2026/06/CVE-2026-13165 for authoritative guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SzafirHost is a host/helper application from Krajowa Izba Rozliczeniowa (KIR) used in Poland's qualified electronic-signature ecosystem (elektronicznypodpis.pl), and it loads platform-native libraries (DLL on Windows, SO on Linux, DYLIB on macOS) delivered inside a signed JAR/ZIP archive. The root cause is a classic ZIP parser differential: the JarFile API authenticates entries by walking the Central Directory at the end of the archive, whereas JarInputStream streams entries from their local file headers at the front. Because the ZIP format permits local-file-header entries that are not referenced in the Central Directory, a file present to JarInputStream can be invisible to JarFile's signature validation. CWE-434 (Unrestricted Upload of File with Dangerous Type) captures the consequence - an unverified executable native library is staged and loaded - though the underlying mechanism is a signature-verification bypass driven by inconsistent ZIP parsing, with the archive-size check insufficient to detect the appended entry.
Know when Szafirhost gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
Network-delivered but requires attacker-controlled archive source and victim action, so AC:H and UI:R; unauthenticated on target (PR:N) with full host RCE giving C/I/A:H.
Primary rating from Vendor (CERT-PL).
CVSS VectorVendor: CERT-PL
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
SzafirHost's ZIP/JAR parser flaw undermines signature verification, allowing unsigned malicious libraries to execute with application privileges and compromise the integrity of digital signatures. This exposes the organization to document fraud, regulatory non-compliance, and system compromise across all affected versions. Immediate containment is critical given the current unpatched status.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable native library loading if operationally feasible; (2) Run SzafirHost in isolated VM/sandbox with restricted network connectivity; (3) Enforce OS-level code-signing policy to reject unsigned libraries; (4) Implement continuous monitoring for anomalous library writes and process execution from SzafirHost.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-40078
GHSA-r9vj-frg8-hc25
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB