# CVE-2019-17570: Insecure Deserialization in Apache XML-RPC

> A malicious XML-RPC server can trigger untrusted deserialization in the client, leading to arbitrary code execution. The library is unmaintained.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 23 Jan 2020
- **Updated:** 5 Aug 2024
- **Also known as:** DLA-2078-1, DSA-4619-1, GHSA-6vwp-35w3-xph8, MGASA-2020-0077, OESA-2022-1545, OESA-2022-2096, RHSA-2020:0310, UBUNTU-CVE-2019-17570, USN-4496-1

## What is CVE-2019-17570?

CVE-2019-17570 is a critical unsafe deserialization vulnerability in Canonical Ubuntu Linux, published on 23 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An untrusted deserialization was found in the org.apache.xmlrpc.parser.XmlRpcResponseParser:addResult method of Apache XML-RPC (aka ws-xmlrpc) library. A malicious XML-RPC server could target a XML-RPC client causing it to execute arbitrary code. Apache XML-RPC is no longer maintained and this issue will not be fixed.

Weakness: CWE-502 (Deserialization of Untrusted Data)

## Which versions are affected by CVE-2019-17570?

2 open source packages ship an affected version, including org.apache.xmlrpc:xmlrpc. It affects 5 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.xmlrpc:xmlrpc` | Maven | All versions to 3.1.3 | None |
| `org.apache.xmlrpc:xmlrpc` | Maven | All versions to 3.1.3 | None |
| `rh-java-common-xmlrpc` | Red Hat:rhel_software_collections:3::el6 | All versions | 1:3.1.3-8.17.el6 |
| `rh-java-common-xmlrpc-client` | Red Hat:rhel_software_collections:3::el6 | All versions | 1:3.1.3-8.17.el6 |
| `rh-java-common-xmlrpc-common` | Red Hat:rhel_software_collections:3::el6 | All versions | 1:3.1.3-8.17.el6 |
| `rh-java-common-xmlrpc-javadoc` | Red Hat:rhel_software_collections:3::el6 | All versions | 1:3.1.3-8.17.el6 |
| `rh-java-common-xmlrpc-server` | Red Hat:rhel_software_collections:3::el6 | All versions | 1:3.1.3-8.17.el6 |
| `rh-java-common-xmlrpc` | Red Hat:rhel_software_collections:3::el7 | All versions | 1:3.1.3-8.17.el7 |
| `rh-java-common-xmlrpc-client` | Red Hat:rhel_software_collections:3::el7 | All versions | 1:3.1.3-8.17.el7 |
| `rh-java-common-xmlrpc-common` | Red Hat:rhel_software_collections:3::el7 | All versions | 1:3.1.3-8.17.el7 |
| `rh-java-common-xmlrpc-javadoc` | Red Hat:rhel_software_collections:3::el7 | All versions | 1:3.1.3-8.17.el7 |
| `rh-java-common-xmlrpc-server` | Red Hat:rhel_software_collections:3::el7 | All versions | 1:3.1.3-8.17.el7 |

Products: Apache Xml-Rpc, Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Redhat Software Collections.

## How do I fix CVE-2019-17570?

Product is end of life, replace it.

## Is CVE-2019-17570 being exploited?

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

Public exploit code:

- xmlrpc common deserialization vulnerability (github_poc): https://github.com/r00t4dm/CVE-2019-17570
- CVE-2019-17570 details and proof of concept (github_poc): https://github.com/im23pds/xmlrpc-common-deserialization

## Other vulnerabilities in Canonical Ubuntu Linux

- [CVE-2016-5002](https://insights.sbomify.com/CVE-2016-5002/): Apache XML-RPC XXE Vulnerability (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-17570 and fix it if it is affected.

What it is: CVE-2019-17570 is a critical unsafe deserialization vulnerability in Canonical Ubuntu Linux, published on 23 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-17570 in the wild and no public exploit code.

Affected packages and fixed versions:
- org.apache.xmlrpc:xmlrpc (Maven): affected all versions up to 3.1.3; no fix listed
- org.apache.xmlrpc:xmlrpc (Maven): affected all versions up to 3.1.3; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2019-17570/ (Markdown: https://insights.sbomify.com/CVE-2019-17570/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-17570
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-17570
- OSV: https://osv.dev/vulnerability/CVE-2019-17570

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-17570/
Summaries are generated and may contain mistakes; the official description above is the record.
