Skip to main content

SzafirHost CVE-2026-13165

| EUVDEUVD-2026-40078 HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-06-29 CERT-PL GHSA-r9vj-frg8-hc25
8.6
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain control of served archive (server compromise or MITM)
  2. Delivery
    Inject malicious native lib as local-header-only entry
  3. Exploit
    Signature check reads Central Directory and accepts archive
  4. Execution
    User runs SzafirHost, extractor writes lib to temp dir
  5. Impact
    Native 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SzafirHost 0 <1.2.2

Affected Packages

euvd szafirhost fix: 1.2.2

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

Vendor (CERT-PL) PRIMARY 8.6 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Jun 29, 2026 - 15:01 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche Polish KIR e-signature host app, region- and industry-specific
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy