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

- Severity: High 8.6 (CVSS:4.0, scored by CERT-PL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-06-29T12:16:55.559Z
- Modified: 2026-10-25T21:10:00.770Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CERT-PL

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

(As written by CVE List.)

## Affected

- Krajowa Izba Rozliczeniowa SzafirHost: before 1.2.2

## References

- <https://cert.pl/posts/2026/06/CVE-2026-13165> (third-party-advisory)
- <https://www.elektronicznypodpis.pl/> (product)

## Sources

- CVE List: [CVE-2026-13165](https://www.cve.org/CVERecord?id=CVE-2026-13165), CVE Terms of Use, modified 2026-06-29
- NVD: [CVE-2026-13165](https://nvd.nist.gov/vuln/detail/CVE-2026-13165), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-13165 · Whole record: https://cve.day/CVE-2026-13165.json · Rebuilt by cve.day 2026-11-25T22:59:26.606Z
