CVE-2017-15095 - Deserialization of Untrusted Data

Severity

75%

Complexity

99%

Confidentiality

106%

\

A deserialization flaw was discovered in the jackson-databind in versions before 2.8.10 and 2.9.1, which could allow an unauthenticated user to perform code execution by sending the maliciously crafted input to the readValue method of the ObjectMapper. This issue extends the previous flaw CVE-2017-7525 by blacklisting more classes that could be used maliciously.

\

CVSS 3.0 Base Score 9.8. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 7.5. CVSS Attack Vector: network. CVSS Attack Complexity: low. CVSS Vector: (AV:N/AC:L/Au:N/C:P/I:P/A:P).

Demo Examples

Deserialization of Untrusted Data

CWE-502

This code snippet deserializes an object from a file and uses it as a UI button:


               
}
in.close();

This code does not attempt to verify the source or contents of the file before deserializing it. An attacker may be able to replace the intended file with a file that contains arbitrary malicious code which will be executed when the button is pressed.

To mitigate this, explicitly define final readObject() to prevent deserialization. An example of this is:


               
throw new java.io.IOException("Cannot be deserialized"); }

Deserialization of Untrusted Data

CWE-502

In Python, the Pickle library handles the serialization and deserialization processes. In this example derived from [R.502.7], the code receives and parses data, and afterwards tries to authenticate a user based on validating a token.


               
}
raise AuthFail

Unfortunately, the code does not verify that the incoming data is legitimate. An attacker can construct a illegitimate, serialized object "AuthToken" that instantiates one of Python's subprocesses to execute arbitrary commands. For instance,the attacker could construct a pickle that leverages Python's subprocess module, which spawns new processes and includes a number of arguments for various uses. Since Pickle allows objects to define the process for how they should be unpickled, the attacker can direct the unpickle process to call Popen in the subprocess module and execute /bin/sh.

Overview

First reported 7 years ago

2018-02-06 15:29:00

Last updated 5 years ago

2019-09-27 03:15:00

Affected Software

FasterXML Jackson-databind 2.9.0

2.9.0

FasterXML Jackson-databind 2.9.0 Prerelease1

2.9.0

FasterXML Jackson-databind 2.9.0 Prerelease2

2.9.0

FasterXML Jackson-databind 2.9.0 Prerelease3

2.9.0

FasterXML Jackson-databind 2.9.0 Prerelease4

2.9.0

Debian Linux 8.0 (Jessie)

8.0

Debian Linux 9.0

9.0

FasterXML Jackson

Red Hat JBoss Enterprise Application Platform (EAP) 6.0.0

6.0.0

Red Hat JBoss Enterprise Application Platform (EAP) 6.4.0

6.4.0

Red Hat JBoss Enterprise Application Platform (EAP) 7.1.0

7.1.0

References

http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html

Patch, Third Party Advisory

http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html

Patch, Third Party Advisory

http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html

Patch, Third Party Advisory

103880

Third Party Advisory, VDB Entry

1039769

Third Party Advisory, VDB Entry

RHSA-2017:3189

Third Party Advisory

RHSA-2017:3190

Third Party Advisory

RHSA-2018:0342

Third Party Advisory

RHSA-2018:0478

Third Party Advisory

RHSA-2018:0479

Third Party Advisory

RHSA-2018:0480

Third Party Advisory

RHSA-2018:0481

Third Party Advisory

RHSA-2018:0576

Third Party Advisory

RHSA-2018:0577

Third Party Advisory

RHSA-2018:1447

Third Party Advisory

RHSA-2018:1448

Third Party Advisory

RHSA-2018:1449

Third Party Advisory

RHSA-2018:1450

Third Party Advisory

RHSA-2018:1451

Third Party Advisory

RHSA-2018:2927

Third Party Advisory

RHSA-2019:2858

RHSA-2019:3149

RHSA-2019:3892

https://github.com/FasterXML/jackson-databind/issues/1680

Issue Tracking, Third Party Advisory

https://github.com/FasterXML/jackson-databind/issues/1737

Issue Tracking, Patch, Third Party Advisory

[lucene-solr-user] 20191219 Re: CVE-2017-7525 fix for Solr 7.7.x

[debian-lts-announce] 20200131 [SECURITY] [DLA 2091-1] libjackson-json-java security update

https://security.netapp.com/advisory/ntap-20171214-0003/

Third Party Advisory

DSA-4037

Third Party Advisory

https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html

Patch, Third Party Advisory

https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html

Patch, Third Party Advisory

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.