Restlet is vulnerable to Arbitrary Java Code Execution via crafted XML
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.restlet.jse:org.restlet | < 2.1.4 | 2.1.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-4221
- https://github.com/restlet/restlet-framework-java/issues/774
- https://github.com/restlet/restlet-framework-java/commit/b85c2ef182c69c5e2e21df008ccb249ccf80c7b
- https://bugzilla.redhat.com/show_bug.cgi?id=995275
- https://github.com/restlet/restlet-framework-java
- http://blog.diniscruz.com/2013/08/using-xmldecoder-to-execute-server-side.html
- http://restlet.org/learn/2.1/changes
- http://rhn.redhat.com/errata/RHSA-2013-1410.html
- http://rhn.redhat.com/errata/RHSA-2013-1862.html
- Weakness (CWE)
CWE-91- Platform
- Java / Kotlin (Maven)
- Package
org.restlet.jse:org.restlet- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-92j2-5r7p-6hjw - CC BY 4.0
Vulnerability history: org.restlet.jse:org.restlet
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 10.2018 05.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 3
- Medium 1
Disclosures per year
- 2018: 2
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Restlet is vulnerable to Arbitrary Java Code Execution via crafted XML this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.