Information exposure in FasterXML jackson-databind
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core:jackson-databind Maven |
|
|
A Polymorphic Typing issue was discovered in FasterXML jackson-databind 2.x before 2.9.9. When Default Typing is enabled (either globally or for a specific property) for an externally exposed JSON endpoint, the service has the mysql-connector-java jar (8.0.14 or earlier) in the classpath, and an attacker can host a crafted MySQL server reachable by the victim, an attacker can send a crafted JSON message that allows them to read arbitrary local files on the server. This occurs because of missing com.mysql.cj.jdbc.admin.MiniAdmin validation.
From the CVE record · mitre
FasterXML jackson-databind is vulnerable when Default Typing is enabled for an externally exposed JSON endpoint and mysql-connector-java 8.0.14 or earlier is on the classpath. An attacker who can send crafted JSON to that endpoint and host a MySQL server reachable by the victim can read arbitrary local files on the server.
Check services using Maven com.fasterxml.jackson.core:jackson-databind versions >=2.9.0 <2.9.9, >=2.8.0 <2.8.11.4, >=2.7.0 <2.7.9.6, or >=2.0.0 <2.6.7.3.