{"id":"CVE-2020-26277","published":"2020-12-21T21:15:14Z","modified":"2024-08-04T15:56:03Z","title":"Arbitrary read/write in DBdeployer","vendor":"datacharmer","product":"dbdeployer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01201,"percentile":0.68945,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/datacharmer/dbdeployer/security/advisories/GHSA-47wr-426j-fr82","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/datacharmer/dbdeployer/commit/548e256c1de2f99746e861454e7714ec6bc9bb10","tags":["x_refsource_MISC"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":13.79},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"datacharmer","affectedVersions":[{"vendor":"datacharmer","product":"dbdeployer","versions":["< 1.58.2"]}],"affected":[{"ecosystem":"Go","package":"github.com/datacharmer/dbdeployer","vulnerableRanges":["<1.58.2"],"patched":["1.58.2"],"from":["GHSA-47wr-426j-fr82","GO-2022-0787"],"provenance":"source"}],"summary":{"text":"DBdeployer before version 1.58.2 contains a link-following flaw in its tarball unpacking, where a maliciously packaged tarball containing symlinks pointing to files outside the target directory can cause the tool to write to arbitrary system files. Exploitation requires that the user run dbdeployer while logged in as root, and that they unpack a tarball from an untrusted source without verifying its checksum, which dbdeployer otherwise checks before unpacking.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:04Z"},"euvd":{"id":"EUVD-2022-0806","exploited":false,"provenance":"source"}}