CVE-2017-12196: Undertow core Incorrect Authorization Vulnerability
MODERATECVE-2017-12196 is a MODERATE (CVSS 5.9) incorrect authorization vulnerability (CWE-863: Incorrect Authorization) affecting Undertow core libraries in the Maven ecosystem. The issue involves incorrect authorization in undertow. Remediation is available by upgrading affected packages to version 2.0.2.FInal, 1.4.24.Final.
CVE-2017-12196 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2017-12196
To remediate this vulnerability, upgrade all affected Undertow core 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.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>2.0.2.FInal</version>
</dependency>
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>1.4.24.Final</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.undertow
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2017-12196, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.undertow
Analyze the terminal output to locate any version of Undertow core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2.FInal), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.undertow 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Undertow core, 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-2017-12196 Affected Undertow core Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.undertow:undertow-core
|
Maven |
≥ 2.0.0.Alpha1
< 2.0.2.FInal
|
2.0.2.FInal
|
|
io.undertow:undertow-core
|
Maven |
< 1.4.24.Final
|
1.4.24.Final
|
References
Frequently Asked Questions
What is CVE-2017-12196?
Which Undertow core versions are affected?
What version fixes CVE-2017-12196?
Is undertow-core affected?
What is the CVSS score of CVE-2017-12196?
What CWE is associated with CVE-2017-12196?
How can I check Maven dependencies for CVE-2017-12196?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cp7v-vmv7-6x2q",
"modified" : "2022-07-01T21:34:47Z",
"published" : "2022-05-13T01:38:10Z",
"aliases" : [ "CVE-2017-12196" ],
"summary" : "Incorrect Authorization in Undertow",
"details" : "Undertow before versions 1.4.18.SP1 (not findable in Maven), 2.0.2.Final, and 1.4.24.Final was found vulnerable when using Digest authentication, the server does not ensure that the value of URI in the Authorization header matches the URI in HTTP request line. This allows the attacker to cause a MITM attack and access the desired content on the server.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.undertow:undertow-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0.Alpha1"
}, {
"fixed" : "2.0.2.FInal"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.0.1.Final"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.undertow:undertow-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.24.Final"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.4.23.Final"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12196"
}, {
"type" : "WEB",
"url" : "https://github.com/undertow-io/undertow/commit/facb33a5cedaf4b7b96d3840a08210370a806870"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0478"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0479"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0480"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:0481"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:1525"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:2405"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2018:3768"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-12196"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/undertow-io/undertow"
}, {
"type" : "WEB",
"url" : "https://issues.jboss.org/browse/UNDERTOW-1190"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-07-01T21:34:47Z",
"nvd_published_at" : "2018-04-18T01:29:00Z"
}
}