{"schemaVersion":3,"id":"CVE-2021-29157","aliases":["ALPINE-CVE-2021-29157","DEBIAN-CVE-2021-29157"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-06-28T11:58:41.000Z","modified":"2024-08-03T22:02:51.122Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AC:H/AV:L/A:N/C:H/I:H/PR:L/S:C/UI:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AC:H/AV:L/A:N/C:H/I:H/PR:L/S:C/UI:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0047,"percentile":0.39614,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0047},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0047,"percentile":0.39614}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0047,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0047,"percentile":0.39614}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"alpine","product":"dovecot","name":"dovecot","label":"dovecot","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/dovecot","purlType":"apk","versions":[{"text":"≥ 2.3.11, < 2.3.15-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.3.11, < 2.3.15-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"dovecot","name":"dovecot","label":"dovecot","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/dovecot","purlType":"deb","versions":[{"text":"< 1:2.3.13+dfsg1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.3.13+dfsg1-2","eol":null,"hubHref":null},{"vendor":"dovecot","product":"dovecot","name":"dovecot","label":"dovecot","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.3.11, < 2.3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.3.11, < 2.3.14.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"dovecot","label":"Dovecot","category":"server-app"}},"hubHref":"/vendor/dovecot/dovecot"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://dovecot.org/security","label":"dovecot.org/security","hostname":"dovecot.org","tags":["X Refsource MISC","Vendor Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2021/06/28/1","label":"www.openwall.com/lists/oss-security/2021/06/28/1","hostname":"www.openwall.com","tags":["X Refsource CONFIRM","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JB2VTJ3G2ILYWH5Y2FTY2PUHT2MD6VMI/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TK424DWFO2TKJYXZ2H3XL633TYJL4GQN/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security.gentoo.org/glsa/202107-41","label":"security.gentoo.org/glsa/202107-41","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-29157","label":"security.alpinelinux.org/vuln/CVE-2021-29157","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29157","label":"security-tracker.debian.org/tracker/CVE-2021-29157","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29157","label":"nvd.nist.gov/vuln/detail/CVE-2021-29157","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2021-0557","OPENSUSE-SU-2021:0920-1","OPENSUSE-SU-2021:1225-1","OPENSUSE-SU-2021:2123-1","OPENSUSE-SU-2021:2892-1","OPENSUSE-SU-2024:10726-1","OPENSUSE-SU-2025:14715-1","SUSE-SU-2021:2122-1","SUSE-SU-2021:2123-1","SUSE-SU-2021:2124-1","SUSE-SU-2021:2890-1","SUSE-SU-2021:2891-1","SUSE-SU-2021:2892-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0920-1","OPENSUSE-SU-2021:1225-1","OPENSUSE-SU-2021:2123-1","OPENSUSE-SU-2021:2892-1","OPENSUSE-SU-2024:10726-1","OPENSUSE-SU-2025:14715-1","SUSE-SU-2021:2122-1","SUSE-SU-2021:2123-1","SUSE-SU-2021:2124-1","SUSE-SU-2021:2890-1","SUSE-SU-2021:2891-1","SUSE-SU-2021:2892-1"]},"timeline":[{"kind":"published","date":"2021-06-28T11:58:41.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T22:02:51.122Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T22:26:52.605Z","stale":false,"partial":false}}