{"api_version":"1","generated_at":"2026-04-22T19:50:33+00:00","cve":"CVE-2021-29157","urls":{"html":"https://cve.report/CVE-2021-29157","api":"https://cve.report/api/cve/CVE-2021-29157.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-29157","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29157"},"summary":{"title":"CVE-2021-29157","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-06-28 12:15:00","updated_at":"2023-11-07 03:32:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://www.openwall.com/lists/oss-security/2021/06/28/1","name":"https://www.openwall.com/lists/oss-security/2021/06/28/1","refsource":"CONFIRM","tags":[],"title":"oss-security - CVE-2021-29157: Dovecot oauth2 JWT local validation path traversal","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TK424DWFO2TKJYXZ2H3XL633TYJL4GQN/","name":"FEDORA-2021-891c1ab1ac","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: dovecot-2.3.15-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JB2VTJ3G2ILYWH5Y2FTY2PUHT2MD6VMI/","name":"FEDORA-2021-208340a217","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: dovecot-2.3.15-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JB2VTJ3G2ILYWH5Y2FTY2PUHT2MD6VMI/","name":"FEDORA-2021-208340a217","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: dovecot-2.3.15-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202107-41","name":"GLSA-202107-41","refsource":"GENTOO","tags":[],"title":"Dovecot: Multiple vulnerabilities (GLSA 202107-41) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TK424DWFO2TKJYXZ2H3XL633TYJL4GQN/","name":"FEDORA-2021-891c1ab1ac","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: dovecot-2.3.15-1.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://dovecot.org/security","name":"https://dovecot.org/security","refsource":"MISC","tags":[],"title":"Dovecot | Security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29157","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29157","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"29157","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"dovecot","cpe5":"dovecot","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"29157","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"29157","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-29157","qid":"179995","title":"Debian Security Update for dovecot (CVE-2021-29157)"},{"cve":"CVE-2021-29157","qid":"198412","title":"Ubuntu Security Notification for Dovecot vulnerabilities (USN-4993-1)"},{"cve":"CVE-2021-29157","qid":"281677","title":"Fedora Security Update for dovecot (FEDORA-2021-208340a217)"},{"cve":"CVE-2021-29157","qid":"281678","title":"Fedora Security Update for dovecot (FEDORA-2021-891c1ab1ac)"},{"cve":"CVE-2021-29157","qid":"500156","title":"Alpine Linux Security Update for dovecot"},{"cve":"CVE-2021-29157","qid":"503806","title":"Alpine Linux Security Update for dovecot"},{"cve":"CVE-2021-29157","qid":"690103","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for dovecot (d18f431d-d360-11eb-a32c-00a0989e4ec1)"},{"cve":"CVE-2021-29157","qid":"710028","title":"Gentoo Linux Dovecot Multiple vulnerabilities (GLSA 202107-41)"},{"cve":"CVE-2021-29157","qid":"750695","title":"SUSE Enterprise Linux Security Update for dovecot23 (SUSE-SU-2021:2122-1)"},{"cve":"CVE-2021-29157","qid":"750697","title":"SUSE Enterprise Linux Security Update for dovecot23 (SUSE-SU-2021:2124-1)"},{"cve":"CVE-2021-29157","qid":"750729","title":"OpenSUSE Security Update for dovecot23 (openSUSE-SU-2021:0920-1)"},{"cve":"CVE-2021-29157","qid":"750800","title":"OpenSUSE Security Update for dovecot23 (openSUSE-SU-2021:2123-1)"},{"cve":"CVE-2021-29157","qid":"751070","title":"OpenSUSE Security Update for dovecot23 (openSUSE-SU-2021:2892-1)"},{"cve":"CVE-2021-29157","qid":"751078","title":"SUSE Enterprise Linux Security Update for dovecot23 (SUSE-SU-2021:2890-1)"},{"cve":"CVE-2021-29157","qid":"751080","title":"SUSE Enterprise Linux Security Update for dovecot23 (SUSE-SU-2021:2891-1)"},{"cve":"CVE-2021-29157","qid":"751091","title":"OpenSUSE Security Update for dovecot23 (openSUSE-SU-2021:1225-1)"},{"cve":"CVE-2021-29157","qid":"900900","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for dovecot (7195)"},{"cve":"CVE-2021-29157","qid":"907339","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for dovecot (7195-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-29157","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://dovecot.org/security","refsource":"MISC","name":"https://dovecot.org/security"},{"refsource":"CONFIRM","name":"https://www.openwall.com/lists/oss-security/2021/06/28/1","url":"https://www.openwall.com/lists/oss-security/2021/06/28/1"},{"refsource":"FEDORA","name":"FEDORA-2021-208340a217","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JB2VTJ3G2ILYWH5Y2FTY2PUHT2MD6VMI/"},{"refsource":"FEDORA","name":"FEDORA-2021-891c1ab1ac","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TK424DWFO2TKJYXZ2H3XL633TYJL4GQN/"},{"refsource":"GENTOO","name":"GLSA-202107-41","url":"https://security.gentoo.org/glsa/202107-41"}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AC:H/AV:L/A:N/C:H/I:H/PR:L/S:C/UI:N","version":"3.1"}}},"nvd":{"publishedDate":"2021-06-28 12:15:00","lastModifiedDate":"2023-11-07 03:32:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:dovecot:dovecot:*:*:*:*:*:*:*:*","versionStartIncluding":"2.3.11","versionEndExcluding":"2.3.14.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"29157","Ordinal":"204352","Title":"CVE-2021-29157","CVE":"CVE-2021-29157","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"29157","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"29157","Ordinal":"2","NoteData":"2021-06-28","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"29157","Ordinal":"3","NoteData":"2021-07-18","Type":"Other","Title":"Modified"}]}}}