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.
Published: 2026-06-29
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SzafirHost verifies the integrity of downloaded native library archives by parsing the Central Directory with one parser, but extracts libraries using a second parser that reads sequentially from local file headers. An attacker who can control the served archive can inject a malicious DLL, SO, or DYLIB as a local‑file‑header entry placed after the last legitimate entry and before the Central Directory. Because the signature verifier never inspects the injected entry, the archive passes validation, while the extractor writes the malicious library to the system’s temporary native directory without performing any hash or signature check. This flaw allows an attacker to place executable code in the local file system, leading to remote code execution on the host running SzafirHost. The vulnerability is caused by the misuse of two different parsing mechanisms for the same archive format, which creates a mismatch between verification and extraction. This is a classic case of CWE‑434, Untrusted File Type. The lack of a single authoritative parsing and validation step allows a crafted archive to bypass security checks. Attackers would need to supply a specially crafted archive to a server or client component that accepts and extracts native libraries from external sources. Once the archive is processed, the attacker’s payload is written to a temporary directory and can be executed by the hosting application or system services with the privileges of the SzafirHost process.

Affected Systems

The affected product is SzafirHost from Krajowa Izba Rozliczeniowa. Versions earlier than 1.2.2 are vulnerable; the remediation notes that the issue was fixed in version 1.2.2, so all releases prior to that are impacted.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.6, indicating high severity. No EPSS score is available, so the current probability of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, suggesting it may not yet have known exploitation in the wild. The attack vector, inferred from the description, requires an attacker to supply a crafted archive to the system; if the application accepts user‑supplied archives from networks or local input, exploitation is possible. Adequate safeguards such as authenticating archives or restricting accepted file types could mitigate the risk. The potential impact is full remote code execution, granting the attacker complete control over the affected host.

Generated by OpenCVE AI on June 29, 2026 at 14:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch to update SzafirHost to version 1.2.2 or later.
  • Ensure that all native library archives are verified using a single, trustworthy parser that checks the signature and contents before extraction.
  • Implement runtime controls that prevent execution of libraries extracted from external archives, such as restricting the temporary directory to non‑executable file system mounts or using access controls that stop automatic execution.

Generated by OpenCVE AI on June 29, 2026 at 14:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 29 Jun 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Krajowa Izba Rozliczeniowa
Krajowa Izba Rozliczeniowa szafirhost
Vendors & Products Krajowa Izba Rozliczeniowa
Krajowa Izba Rozliczeniowa szafirhost

Mon, 29 Jun 2026 13:30:00 +0000

Type Values Removed Values Added
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.
Title Remote Code Execution in SzafirHost
Weaknesses CWE-434
References
Metrics cvssV4_0

{'score': 8.6, 'vector': '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'}


Subscriptions

Krajowa Izba Rozliczeniowa Szafirhost
cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-06-29T13:58:14.780Z

Reserved: 2026-06-24T13:07:31.310Z

Link: CVE-2026-13165

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-29T18:00:05Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type