8.6high
Remote Code Execution in SzafirHost
- Severity
- 8.6high CVSS:4.0 by CERT-PL
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Krajowa Izba Rozliczeniowa SzafirHost | before 1.2.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
SzafirHost verifica el archivo de biblioteca nativa descargado con un analizador JarFile (leyendo el Directorio Central) pero extrae bibliotecas nativas con un analizador JarInputStream (leyendo secuencialmente desde las cabeceras de archivos locales). Un atacante que controla el archivo servido puede insertar una DLL/SO/DYLIB maliciosa como una entrada de cabecera de archivo local entre la última entrada legítima y el Directorio Central, sin añadirla al Directorio Central. El verificador de firmas nunca ve la entrada inyectada y acepta el archivo como válidamente firmado; el extractor la lee secuencialmente y escribe la biblioteca del atacante en el directorio temporal nativo sin verificación de hash), mientras que la verificación del tamaño del archivo sigue pasando. Esto puede llevar a ejecución remota de código. Este problema se solucionó en la versión 1.2.2.
References
| https://cert.pl/posts/2026/06/CVE-2026-13165 | third-party-advisory | |
| https://www.elektronicznypodpis.pl/ | product | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13165 changed 2026-06-29 | CVE Terms of Use |
| NVD | CVE-2026-13165 changed 2026-10-25 | Public domain |