CVE-2018-12536: Jetty server Eclipse Jetty Server Generates Error Vulnerability
MODERATECVE-2018-12536 is a MODERATE (CVSS 5.3) eclipse jetty server generates error vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Jetty server libraries in the Maven ecosystem. The issue involves eclipse jetty server generates error message containing sensitive information. Remediation is available by upgrading affected packages to version 9.4.11.v20180605, 9.3.24.v20180605.
CVE-2018-12536 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2018-12536
To remediate this vulnerability, upgrade all affected Jetty server 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>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.4.11.v20180605</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>9.3.24.v20180605</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.eclipse.jetty
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-12536, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.eclipse.jetty
Analyze the terminal output to locate any version of Jetty server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.4.11.v20180605), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.eclipse.jetty 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Jetty server, 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-2018-12536 Affected Jetty server Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.eclipse.jetty:jetty-server
|
Maven |
≥ 9.4.0
< 9.4.11.v20180605
|
9.4.11.v20180605
|
|
org.eclipse.jetty:jetty-server
|
Maven |
≥ 9.0.0
< 9.3.24.v20180605
|
9.3.24.v20180605
|
References
Frequently Asked Questions
What is CVE-2018-12536?
Which Jetty server versions are affected?
What version fixes CVE-2018-12536?
Is jetty-server affected?
What is the CVSS score of CVE-2018-12536?
What CWE is associated with CVE-2018-12536?
How can I check Maven dependencies for CVE-2018-12536?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9rgv-h7x4-qw8g",
"modified" : "2023-08-18T16:47:12Z",
"published" : "2018-10-19T16:15:56Z",
"aliases" : [ "CVE-2018-12536" ],
"summary" : "Eclipse Jetty Server generates error message containing sensitive information",
"details" : "In Eclipse Jetty Server, all 9.x versions, on webapps deployed using default Error Handling, when an intentionally bad query arrives that doesn't match a dynamic url-pattern, and is eventually handled by the DefaultServlet's static file serving, the bad characters can trigger a java.nio.file.InvalidPathException which includes the full path to the base resource directory that the DefaultServlet and/or webapp is using. If this InvalidPathException is then handled by the default Error Handler, the InvalidPathException message is included in the error response, revealing the full server path to the requesting system.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.4.0"
}, {
"fixed" : "9.4.11.v20180605"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.4.10.v20180503"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.3.24.v20180605"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.3.23.v20180228"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-12536"
}, {
"type" : "WEB",
"url" : "https://bugs.eclipse.org/bugs/show_bug.cgi?id=535670"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eclipse/jetty.project"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread.html/053d9ce4d579b02203db18545fee5e33f35f2932885459b74d1e4272@%3Cissues.activemq.apache.org%3E"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2021/05/msg00016.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20181014-0001"
}, {
"type" : "WEB",
"url" : "https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbst03953en_us"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200516001904/http://www.securitytracker.com/id/1041194"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-209" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:29:36Z",
"nvd_published_at" : "2018-06-27T17:29:00Z"
}
}