CVE-2013-4221 Restlet is vulnerable to Arbitrary Java Code Execution via crafted XML

High 7.5 Published Updated

Remote attackers can execute arbitrary Java code via crafted XML due to unsafe deserialization in the default configuration of the Restlet library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-4221?

CVE-2013-4221 is a high-severity unsafe deserialization vulnerability in n/a, published on 10 Oct 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-91, CWE-16

Which versions are affected by CVE-2013-4221?

2 open source packages ship an affected version, including org.restlet.jse:org.restlet. It affects 1 product.

PackageAffectedFixed in
org.restlet.jse:org.restlet MavenAll versions2.1.4
org.restlet.jse:org.restlet MavenAll versions2.1.4

Products include Restlet Restlet.

How do I fix CVE-2013-4221?

Upgrade org.restlet.jse:org.restlet to 2.1.4 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2013-4221 being exploited?

There is no known exploitation of CVE-2013-4221 in the wild and no public exploit code.

Sources

Also known as GHSA-92j2-5r7p-6hjw, UBUNTU-CVE-2013-4221.

Is CVE-2013-4221 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free