Vulnerabilities in pkg:maven/org.jboss.resteasy/resteasy-yaml-provider
PACKAGECVE-2018-1051 is a HIGH (CVSS 8.1) resteasy-yaml-provider vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Resteasy yaml provider libraries in the Maven ecosystem. The issue involves resteasy-yaml-provider. Remediation is available by upgrading affected packages to version 3.6.0.Final, 3.0.26.Final.
pkg:maven/org.jboss.resteasy/resteasy-yaml-provider
Vulnerability advisories affecting package pkg:maven/org.jboss.resteasy/resteasy-yaml-provider. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m2fv-3rqm-g7p5 | CVE-2018-1051 | HIGH | Deserialization of Untrusted Data in org.jboss.resteasy:resteasy-yaml-provider |
CVE-2018-1051 at a Glance
Security Impact
CVSS: 8.1
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:H/A:H).
How to Fix CVE-2018-1051
To remediate this vulnerability, upgrade all affected Resteasy yaml provider 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.jboss.resteasy</groupId>
<artifactId>resteasy-yaml-provider</artifactId>
<version>3.6.0.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-yaml-provider</artifactId>
<version>3.0.26.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=org.jboss.resteasy
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-1051, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.jboss.resteasy
Analyze the terminal output to locate any version of Resteasy yaml provider in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.0.Final), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.jboss.resteasy 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Resteasy yaml provider, 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-1051 Affected Resteasy yaml provider Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jboss.resteasy:resteasy-yaml-provider
|
Maven |
≥ 3.1.0
< 3.6.0.Final
|
3.6.0.Final
|
|
org.jboss.resteasy:resteasy-yaml-provider
|
Maven |
< 3.0.26.Final
|
3.0.26.Final
|
References
Frequently Asked Questions
What is CVE-2018-1051?
Which Resteasy yaml provider versions are affected?
What version fixes CVE-2018-1051?
Is resteasy-yaml-provider affected?
What is the CVSS score of CVE-2018-1051?
What CWE is associated with CVE-2018-1051?
How can I check Maven dependencies for CVE-2018-1051?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2fv-3rqm-g7p5",
"modified" : "2022-11-01T22:38:44Z",
"published" : "2022-05-13T01:33:34Z",
"aliases" : [ "CVE-2018-1051" ],
"summary" : "Deserialization of Untrusted Data in org.jboss.resteasy:resteasy-yaml-provider",
"details" : "It was found that the fix for CVE-2016-9606 in versions 3.0.22 and 3.1.2 was incomplete and Yaml unmarshalling in Resteasy is still possible via `Yaml.load()` in YamlProvider.\n\n#### Mitigation: \nIf the YamlProvider is enabled it's recommended to add authentication, and authorization to the endpoint expecting Yaml content to prevent exploitation of this vulnerability.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jboss.resteasy:resteasy-yaml-provider"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.26.Final"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jboss.resteasy:resteasy-yaml-provider"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.6.0.Final"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1051"
}, {
"type" : "WEB",
"url" : "https://github.com/resteasy/resteasy/pull/1555"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1535411"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1539175#c3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-01T22:38:44Z",
"nvd_published_at" : "2018-01-25T20:29:00Z"
}
}