{"schemaVersion":4,"id":"CVE-2021-32785","aliases":["UBUNTU-CVE-2021-32785","DEBIAN-CVE-2021-32785"],"status":"published","duplicateOf":null,"title":"Format string bug in the Redis cache implementation","description":"mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party, authenticating users against an OpenID Connect Provider. When mod_auth_openidc versions prior to 2.4.9 are configured to use an unencrypted Redis cache (`OIDCCacheEncrypt off`, `OIDCSessionType server-cache`, `OIDCCacheType redis`), `mod_auth_openidc` wrongly performed argument interpolation before passing Redis requests to `hiredis`, which would perform it again and lead to an uncontrolled format string bug. Initial assessment shows that this bug does not appear to allow gaining arbitrary code execution, but can reliably provoke a denial of service by repeatedly crashing the Apache workers. This bug has been corrected in version 2.4.9 by performing argument interpolation only once, using the `hiredis` API. As a workaround, this vulnerability can be mitigated by setting `OIDCCacheEncrypt` to `on`, as cache keys are cryptographically hashed before use when this option is enabled.","dates":{"published":"2021-07-22T00:00:00.000Z","modified":"2024-08-03T23:33:55.913Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02731,"percentile":0.86568,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.02731},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02731,"percentile":0.86568}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02731,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02731,"percentile":0.86568}]},"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-134","name":"Use of Externally-Controlled Format String","description":"The product uses a function that accepts a format string as an argument, but the format string originates from an external source.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/134.html"}],"affected":[{"vendor":"debian","product":"libapache2-mod-auth-openidc","name":"libapache2-mod-auth-openidc","label":"libapache2-mod-auth-openidc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libapache2-mod-auth-openidc","purlType":"deb","versions":[{"text":"< 2.4.9-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9-1","endInclusive":false}}],"versionsText":"< 2.4.9-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libapache2-mod-auth-openidc","name":"libapache2-mod-auth-openidc","label":"libapache2-mod-auth-openidc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libapache2-mod-auth-openidc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"10.0"}}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"netapp","product":"cloud_backup","name":"cloud backup","label":"cloud_backup","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/cloud_backup"},{"vendor":"openidc","product":"mod_auth_openidc","name":"mod auth openidc","label":"mod_auth_openidc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.9","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9","endInclusive":false}}],"versionsText":"< 2.4.9","eol":null,"hubHref":"/vendor/openidc/mod_auth_openidc"},{"vendor":"zmartzone","product":"mod_auth_openidc","name":"mod_auth_openidc","label":"mod_auth_openidc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.9","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9","endInclusive":false}}],"versionsText":"< 2.4.9","eol":null,"hubHref":"/vendor/zmartzone/mod_auth_openidc"}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4","label":"github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4","hostname":"github.com","tags":["REPORT","Mitigation","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449","label":"github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9","label":"github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9","hostname":"github.com","tags":["REPORT","Release Notes","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","label":"www.oracle.com/security-alerts/cpuapr2022.html","hostname":"www.oracle.com","tags":["Patch","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0001/","label":"security.netapp.com/advisory/ntap-20210902-0001/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html","label":"lists.debian.org/debian-lts-announce/2023/04/msg00034.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-32785","label":"ubuntu.com/security/CVE-2021-32785","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32785","label":"www.cve.org/CVERecord?id=CVE-2021-32785","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32785","label":"security-tracker.debian.org/tracker/CVE-2021-32785","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32785","label":"nvd.nist.gov/vuln/detail/CVE-2021-32785","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3409-1","MGASA-2021-0452","OPENSUSE-SU-2021:1277-1","OPENSUSE-SU-2021:3020-1","OPENSUSE-SU-2024:10624-1","SUSE-SU-2021:3020-1","SUSE-SU-2021:3352-1","SUSE-SU-2025:4532-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1277-1","OPENSUSE-SU-2021:3020-1","OPENSUSE-SU-2024:10624-1","SUSE-SU-2021:3020-1","SUSE-SU-2021:3352-1","SUSE-SU-2025:4532-1"]},"timeline":[{"kind":"published","date":"2021-07-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:55.913Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,3,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.02731,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-08-03T23:33:55.913Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2024-08-03T23:33:55.913Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2024-08-03T23:33:55.913Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T23:33:55.913Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T23:33:55.913Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","version":"2.0"}],"epss":{"value":0.02731,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:53:05.980Z","stale":false,"partial":false}}