cve.bz

CVE-2021-20247 Path traversal

7.4 highExploit referenceEPSS 1.9%

High (7.4). EPSS 1.9% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in mbsync before v1.3.5 and v1.4.1. Validations of the mailbox names returned by IMAP LIST/LSUB do not occur allowing a malicious or compromised server to use specially crafted mailbox names containing '..' path components to access data outside the designated mailbox on the opposite end of the synchronization channel. The highest threat from this vulnerability is to data confidentiality and integrity.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
1.9% (unchanged from 1.9% a week ago; 1.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-20 Improper Input Validation
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20247 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20247?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20247?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20247 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mbsync_project:mbsyncbefore 1.3.5
mbsync_project:mbsyncfrom 1.4.0 before 1.4.1
fedoraproject:extra_packages_for_enterprise_linux8.0
debian:debian_linux9.0
fedoraproject:fedora32
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9isync1.2.1-2+deb9u1DLA-3066-1
Debian12, 13, 14isync1.3.0-2.1DEBIAN-CVE-2021-20247
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moreisyncno fix listedUBUNTU-CVE-2021-20247
SUSEPackage Hub 15 SP2isync1.3.5-bp152.4.3.1openSUSE-SU-2021:0533-1
openSUSELeap 15.2isync1.3.5-lp152.4.3.1openSUSE-SU-2021:0516-1
openSUSETumbleweedisync1.4.3-1.2openSUSE-SU-2024:10866-1
Alpinev3.13isync1.3.5-r0ALPINE-CVE-2021-20247
Alpinev3.14, v3.15, v3.16 and 8 moreisync1.4.1-r0ALPINE-CVE-2021-20247

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON