CVE-2013-4221: Org.restlet Restlet Is Vulnerable To Arbitrary Vulnerability
HIGHCVE-2013-4221 is a HIGH restlet is vulnerable to arbitrary vulnerability (CWE-91: XML Injection (aka Blind XPath Injection)) affecting Org.restlet libraries in the Maven ecosystem. The issue involves restlet is vulnerable to arbitrary java code execution via crafted xml. Remediation is available by upgrading affected packages to version 2.1.4.
CVE-2013-4221 at a Glance
How to Fix CVE-2013-4221
To remediate this vulnerability, upgrade all affected Org.restlet 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.restlet.jse</groupId>
<artifactId>org.restlet</artifactId>
<version>2.1.4</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.restlet.jse
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2013-4221, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.restlet.jse
Analyze the terminal output to locate any version of Org.restlet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.restlet.jse 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-91: XML Injection (aka Blind XPath Injection), where the product does not properly neutralize special elements that are used in xml, allowing attackers to modify the syntax, content, or commands of the xml before it is processed by an end system. In Org.restlet, 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-2013-4221 Affected Org.restlet Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.restlet.jse:org.restlet
|
Maven |
< 2.1.4
|
2.1.4
|
References
Frequently Asked Questions
What is CVE-2013-4221?
Which Org.restlet versions are affected?
What version fixes CVE-2013-4221?
Is org.restlet affected?
What CWE is associated with CVE-2013-4221?
How can I check Maven dependencies for CVE-2013-4221?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-92j2-5r7p-6hjw",
"modified" : "2024-03-05T17:30:03Z",
"published" : "2022-05-17T03:28:12Z",
"aliases" : [ "CVE-2013-4221" ],
"summary" : "Restlet is vulnerable to Arbitrary Java Code Execution via crafted XML",
"details" : "The default configuration of the ObjectRepresentation class in Restlet before 2.1.4 deserializes objects from untrusted sources using the Java XMLDecoder, which allows remote attackers to execute arbitrary Java code via crafted XML.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.restlet.jse:org.restlet"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4221"
}, {
"type" : "WEB",
"url" : "https://github.com/restlet/restlet-framework-java/issues/774"
}, {
"type" : "WEB",
"url" : "https://github.com/restlet/restlet-framework-java/commit/b85c2ef182c69c5e2e21df008ccb249ccf80c7b"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=995275"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/restlet/restlet-framework-java"
}, {
"type" : "WEB",
"url" : "http://blog.diniscruz.com/2013/08/using-xmldecoder-to-execute-server-side.html"
}, {
"type" : "WEB",
"url" : "http://restlet.org/learn/2.1/changes"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-1410.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-1862.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-91" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-29T18:02:04Z",
"nvd_published_at" : "2013-10-10T00:55:00Z"
}
}