cve.bz

CVE-2021-29157 Path traversal

5.5 mediumEPSS 0.5%

Medium (5.5). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
Dovecot before 2.3.15 allows ../ Path Traversal. An attacker with access to the local filesystem can trick OAuth2 authentication into using an HS256 validation key from an attacker-controlled location. This occurs during use of local JWT validation with the posix fs driver.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
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-29157 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29157?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29157?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-29157 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
dovecot:dovecotfrom 2.3.11 before 2.3.14.1
fedoraproject:fedora33
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14dovecot1:2.3.13+dfsg1-2DEBIAN-CVE-2021-29157
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moredovecot232.3.11.3-24.1SUSE-SU-2021:2124-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moredovecot232.3.15-27.3SUSE-SU-2021:2891-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moredovecot232.3.11.3-4.35.1SUSE-SU-2021:2122-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moredovecot232.3.15-4.38.3SUSE-SU-2021:2890-1
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3dovecot232.3.11.3-55.1SUSE-SU-2021:2123-1
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3dovecot232.3.15-58.3SUSE-SU-2021:2892-1
openSUSELeap 15.2dovecot232.3.11.3-lp152.2.9.1openSUSE-SU-2021:0920-1
openSUSELeap 15.2dovecot232.3.15-lp152.2.12.1openSUSE-SU-2021:1225-1
openSUSELeap 15.3dovecot232.3.11.3-55.1openSUSE-SU-2021:2123-1
openSUSELeap 15.3dovecot232.3.15-58.3openSUSE-SU-2021:2892-1
openSUSETumbleweeddovecot232.3.16-1.6openSUSE-SU-2024:10726-1
openSUSETumbleweeddovecot242.4.0-1.1openSUSE-SU-2025:14715-1
Alpinev3.11, v3.12, v3.13 and 11 moredovecot2.3.15-r0ALPINE-CVE-2021-29157
Azure Linux2dovecot2.3.20-1AZL-7195

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6dovecotOut of support scope
Red Hat Enterprise Linux 7dovecotNot affected
Red Hat Enterprise Linux 8dovecotNot affected
Red Hat Enterprise Linux 9dovecotNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29157.

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.

References

Check your stackJSON