# CVE-2026-13165: Remote Code Execution in SzafirHost

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.71% (percentile 49, 2026-11-26)
- **CWE:** CWE-434
- **Published:** 2026-06-29T12:16:55.559Z
- **Modified:** 2026-10-25T21:10:00.770Z

## Who should check

- Anyone running Krajowa Izba Rozliczeniowa SzafirHost \< 1.2.2

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

## Affected and fixed versions

- Krajowa Izba Rozliczeniowa SzafirHost: \< 1.2.2 (cvelist)

## Mitigation

- Upgrade SzafirHost to 1.2.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-13165. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-13165.md
Affected: Krajowa Izba Rozliczeniowa SzafirHost < 1.2.2
Fixed in: Krajowa Izba Rozliczeniowa SzafirHost 1.2.2

Steps:
1. Search this machine and project for Krajowa Izba Rozliczeniowa SzafirHost: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-13165 being exploited?

There is no confirmed exploitation: CVE-2026-13165 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.71% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-13165?

High: CVSS 8.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-13165?

Krajowa Izba Rozliczeniowa SzafirHost \< 1.2.2.

### Is there a fix for CVE-2026-13165?

Yes. Fixed in Krajowa Izba Rozliczeniowa SzafirHost 1.2.2. Upgrade SzafirHost to 1.2.2 or later.

### How do I check if I'm affected by CVE-2026-13165?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://cert.pl/posts/2026/06/CVE-2026-13165>
- other: <https://www.elektronicznypodpis.pl/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-13165>

HTML: <https://flawdb.com/CVE-2026-13165> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-13165>
