CVE-2020-26277
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.
Weakness
- CWE-59: Improper Link Resolution Before File Access
Timeline
- 2020-12-21Published by the CNA21:15 UTC
- 2022-02-12GitHub advisory published (GHSA-47wr-426j-fr82)418 days after publication
Exploit and advisory records
GitHub advisory GHSA-47wr-426j-fr82, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/datacharmer/dbdeployer | before 1.58.2 | 1.58.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| dbdeployer dbdeployer | before 1.58.2fixed in 1.58.2 | 1.58.2 |
References
- https://github.com/datacharmer/dbdeployer/commit/548e256c1de2f99746e861454e7714ec6bc9bb10
- https://github.com/datacharmer/dbdeployer/security/advisories/GHSA-47wr-426j-fr82
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-26277'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-26277'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-26277'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-26277'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).