CVE-2021-20247: Path Traversal

Published Feb 15, 2021
·
Updated

A flaw was found in mbsync before v1.3.5 and v1.4.1. mbsync doesn't validate the mailbox names returned by IMAP LIST/LSUB, which allows a malicious/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.

Other sources

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.

— MITRE

Affected Software

24 affected componentsFixes available
redhat/mbsync<1.35
1.35
redhat/mbsync<1.4.1
1.4.1
Mbsync Project Mbsync<1.3.5
Mbsync Project Mbsync>=1.4.0<1.4.1
Fedoraproject Extra Packages For Enterprise Linux=8.0
Debian Debian Linux=9.0
Fedoraproject Fedora=32
Fedoraproject Fedora=33
alpine/isync<1.3.5-r0
1.3.5-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
alpine/isync<1.4.1-r0
1.4.1-r0
ubuntu/isync<1.1.2-1ubuntu0.1~esm1
1.1.2-1ubuntu0.1~esm1
ubuntu/isync*
ubuntu/isync<1.3.0-2ubuntu0.1~esm1
1.3.0-2ubuntu0.1~esm1
ubuntu/isync*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/mbsync to a version that resolves this vulnerability.

    Fixed in 1.35
  2. Upgrade

    Upgrade redhat/mbsync to a version that resolves this vulnerability.

    Fixed in 1.4.1
  3. Upgrade

    Upgrade alpine/isync to a version that resolves this vulnerability.

    Fixed in 1.3.5-r0
  4. Upgrade

    Upgrade alpine/isync to a version that resolves this vulnerability.

    Fixed in 1.4.1-r0
  5. Upgrade

    Upgrade ubuntu/isync to a version that resolves this vulnerability.

    Fixed in 1.1.2-1ubuntu0.1~esm1
  6. Upgrade

    Upgrade ubuntu/isync to a version that resolves this vulnerability.

    Fixed in 1.3.0-2ubuntu0.1~esm1

Event History

Feb 15, 2021
Data Sourced
09:50 PM
DescriptionSeverityAffected Software
Feb 22, 2021
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software
Feb 23, 2021
CVE Published
via MITRE·06:45 PM
Data Sourced
via MITRE·06:45 PM
DescriptionWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Data Sourced
07:15 PM
Weakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Dec 2, 2026
Updated
via OSV·02:19 AM
Affected Software

Frequently Asked Questions

1

What is the vulnerability ID for this flaw?

The vulnerability ID for this flaw is CVE-2021-20247.

2

What is the severity rating of CVE-2021-20247?

The severity rating of CVE-2021-20247 is 7.4 (high).

3

What software versions are affected by this vulnerability?

mbsync versions before v1.3.5 and v1.4.1 are affected by this vulnerability.

4

How can a malicious server exploit this vulnerability?

A malicious server can exploit this vulnerability by using specially crafted mailbox names containing '..' path components to access data outside the designated mailbox.

5

Are there any references available for CVE-2021-20247?

Yes, you can find references for CVE-2021-20247 at the following links: [Reference 1](https://www.openwall.com/lists/oss-security/2021/02/22/1), [Reference 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1931598), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1931597).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203