{"id":"CVE-2021-32921","aliases":["ALPINE-CVE-2021-32921","DEBIAN-CVE-2021-32921","DLA-2687-1","DSA-4916-1","EUVD-2021-19643","GHSA-vh63-h6gp-hw6w","UBUNTU-CVE-2021-32921"],"status":"published","title":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for...","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","severity":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01601,"percentile":0.76149,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362"],"published":"2021-05-13T15:14:43Z","modified":"2026-11-03T06:32:33Z","fixes":[{"ecosystem":"Alpine:v3.12","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.13","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"prosody","fixed_in":["0.11.9-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"prosody","fixed_in":["0.11.9-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"prosody","fixed_in":["0.11.9-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"prosody","fixed_in":["0.11.9-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.12","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.13","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.9-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.12-2+deb9u3"}]}],"versions":["0.9.12-2","0.9.12-2+deb9u1","0.9.12-2+deb9u2"],"bundled":2},{"source":"osv","ecosystem":"Debian:10","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.11.2-1+deb10u1"}]}],"versions":["0.11.2-1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.8-1","0.9.9-1","0.9.10-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.12-2","0.10.0-1","0.10.0-1build1","0.10.0-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.2-1","0.11.3-1","0.11.4-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"prosody","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.10-1","0.11.10-1build1","0.11.10-1build2","0.11.11-1","0.11.11-2","0.11.12-1","0.11.13-1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"prosody","product":"prosody"}],"references":[{"url":"https://blog.prosody.im/prosody-0.11.9-released/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory","report"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/13/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/14/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Mitigation","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4916","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MFFBZWXKPZEVZNQSVJNCUE7WRF3T7DG/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LWJ2DG2DFJOEFEWOUN26IMYYWGSA2ZEE/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GUN63AHEWB2WRROJHU3BVJRWLONCT2B7/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202105-15","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/06/msg00016.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/06/msg00018.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32921"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6MFFBZWXKPZEVZNQSVJNCUE7WRF3T7DG/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GUN63AHEWB2WRROJHU3BVJRWLONCT2B7/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LWJ2DG2DFJOEFEWOUN26IMYYWGSA2ZEE/"},{"url":"https://github.com/advisories/GHSA-vh63-h6gp-hw6w"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-32921","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32921","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-32921","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2021/05/13/1","tags":["report"]},{"url":"https://prosody.im/security/advisory_20210512.txt","tags":["report"]},{"url":"https://hg.prosody.im/trunk/rev/c98aebe601f9","tags":["report"]},{"url":"https://hg.prosody.im/trunk/rev/13b84682518e","tags":["report"]},{"url":"https://hg.prosody.im/trunk/rev/6f56170ea986","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32921","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T15:14:43Z","modified":"2024-08-03T23:33:56.162Z","updated_at":"2026-11-02T14:33:07.014772Z"}],"euvd":[{"id":"EUVD-2021-19643","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T15:14:43Z","modified":"2024-08-03T23:33:56Z","updated_at":"2026-11-03T03:24:35.30045Z"}],"ghsa":[{"id":"GHSA-vh63-h6gp-hw6w","title":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for...","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2022-05-24T19:02:20Z","modified":"2023-01-29T05:06:15Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:45:59.056416Z"}],"nvd":[{"id":"CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T16:15:08.407Z","modified":"2026-06-17T03:53:48.247Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:06:53.343329Z"}],"osv":[{"id":"ALPINE-CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T16:15:08.407Z","modified":"2026-11-03T06:32:33.607333046Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-03T07:17:20.312441Z"},{"id":"CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T16:15:08.407Z","modified":"2026-03-15T22:40:48.415471Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.793849Z"},{"id":"DEBIAN-CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T16:15:08.407Z","modified":"2026-10-23T18:03:14.783483332Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-32921","description":"An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.","status":"published","published":"2021-05-13T16:15:00Z","modified":"2025-10-24T04:50:21Z","cvss":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"DLA-2687-1","title":"prosody - security update","status":"published","published":"2021-06-15T00:00:00Z","modified":"2026-03-09T01:23:19.384137Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"DSA-4916-1","title":"prosody - security update","status":"published","published":"2021-05-17T00:00:00Z","modified":"2026-03-09T02:09:33.578701Z","updated_at":"2026-11-02T15:46:17.19998Z"}]}}
