GHSA-82cg-3hv7-74gc — allure-commandline
MEDIUMGHSA-82cg-3hv7-74gc is a medium-severity (CVSS 6.2) Path Traversal vulnerability in io.qameta.allure:allure-commandline. A fix is available for io.qameta.allure:allure-commandline — see the affected versions and patch details below.
Allure Report: Path Traversal in HTTP Server Allows Arbitrary File Read
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for GHSA-82cg-3hv7-74gc.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-82cg-3hv7-74gc plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 374,847 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
io.qameta.allure:allure-commandlineReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Summary
The 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.
Details
When allure serve or allure open is executed, Commands.setUpServer() creates an HTTP server with a handler that serves files from the report directory:
allure-commandline/src/main/java/io/qameta/allure/Commands.java:325-339
protected HttpServer setUpServer(final String host, final int port, final Path reportDirectory) throws IOException {
final HttpServer server = HttpServer
.create(new InetSocketAddress(Objects.isNull(host) ? "localhost" : host, port), 0);
server.createContext("/", exchange -> {
final Path resolve = reportDirectory.resolve("." + exchange.getRequestURI().getPath()); // line 330
if (Files.isDirectory(resolve)) {
serveFile(exchange, resolve.resolve("index.html"));
} else {
serveFile(exchange, resolve);
}
});
return server;
}
On 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:
exchange.getRequestURI().getPath()returns"/../../../etc/passwd"- String concatenation produces
"./../../../etc/passwd" reportDirectory.resolve("./../../../etc/passwd")resolves to e.g./tmp/allure-report/./../../../etc/passwd- The OS resolves this to
/etc/passwd
There 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.
Additionally, 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.
The 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:
- Other local users on shared/multi-tenant systems
- DNS rebinding attacks from malicious web pages visited by the user
- Adjacent containers in CI/CD environments that share a network namespace
PoC
Step 1: Start the Allure server (simulating a typical CI/CD scenario with network binding):
allure serve ./test-results --host 0.0.0.0 --port 9090
Step 2: Read /etc/passwd via path traversal:
curl --path-as-is 'http://localhost:9090/../../../etc/passwd'
Step 3: Alternative using percent-encoded traversal (works even with clients that normalize ..):
curl 'http://localhost:9090/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
Step 4: Read sensitive application files (e.g., environment variables, SSH keys):
curl --path-as-is 'http://localhost:9090/../../../home/user/.ssh/id_rsa'
curl --path-as-is 'http://localhost:9090/../../../proc/self/environ'
Each command returns the full contents of the requested file if readable by the Allure process.
Impact
An 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:
- System credentials:
/etc/shadow(if running as root), SSH private keys, cloud provider credentials - Application secrets: Environment variables via
/proc/self/environ, configuration files, API keys - Source code and data: Any file on the filesystem accessible to the running user
In 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.
Recommended Fix
Normalize the resolved path and verify it remains within the report directory before serving:
server.createContext("/", exchange -> {
final Path resolve = reportDirectory.resolve("." + exchange.getRequestURI().getPath()).normalize();
if (!resolve.startsWith(reportDirectory.normalize())) {
exchange.sendResponseHeaders(403, 0);
exchange.getResponseBody().close();
return;
}
if (Files.isDirectory(resolve)) {
serveFile(exchange, resolve.resolve("index.html"));
} else {
serveFile(exchange, resolve);
}
});
The .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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | io.qameta.allure:allure-commandline | all versions | 2.39.0io.qameta.allure:allure-commandline:2.39.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for io.qameta.allure:allure-commandline, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update io.qameta.allure:allure-commandline to 2.39.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-82cg-3hv7-74gc is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-82cg-3hv7-74gc can be triaged on real exposure rather than presence alone.
Tailored to GHSA-82cg-3hv7-74gc. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-82cg-3hv7-74gc in your dependencies?
O3 Security finds GHSA-82cg-3hv7-74gc across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.