{"schemaVersion":4,"id":"CVE-2021-32791","aliases":["UBUNTU-CVE-2021-32791","DEBIAN-CVE-2021-32791"],"status":"published","duplicateOf":null,"title":"Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc","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. In mod_auth_openidc before version 2.4.9, the AES GCM encryption in mod_auth_openidc uses a static IV and AAD. It is important to fix because this creates a static nonce and since aes-gcm is a stream cipher, this can lead to known cryptographic issues, since the same key is being reused. From 2.4.9 onwards this has been patched to use dynamic values through usage of cjose AES encryption routines.","dates":{"published":"2021-07-26T00:00:00.000Z","modified":"2024-08-03T23:33:56.106Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/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":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01503,"percentile":0.75196,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01503},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01503,"percentile":0.75196}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01503,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01503,"percentile":0.75196}]},"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-323","name":"Reusing a Nonce, Key Pair in Encryption","description":"Nonces should be used for the present occasion and only once.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/323.html"},{"id":"CWE-330","name":"Use of Insufficiently Random Values","description":"The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/330.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":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"33"}},{"text":"34","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"34"}}],"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"},{"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":5,"eol":{"hasEol":true,"count":1},"references":[{"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://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-px3c-6x7j-3r9r","label":"github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-px3c-6x7j-3r9r","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/commit/375407c16c61a70b56fdbe13b0d2c8f11398e92c","label":"github.com/zmartzone/mod_auth_openidc/commit/375407c16c61a70b56fdbe13b0d2c8f11398e92c","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor 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://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"]},{"url":"https://ubuntu.com/security/CVE-2021-32791","label":"ubuntu.com/security/CVE-2021-32791","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32791","label":"www.cve.org/CVERecord?id=CVE-2021-32791","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32791","label":"security-tracker.debian.org/tracker/CVE-2021-32791","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32791","label":"nvd.nist.gov/vuln/detail/CVE-2021-32791","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","RHSA-2022:1823","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","SUSE-SU-2021:3020-1","SUSE-SU-2021:3352-1","SUSE-SU-2025:4532-1"]},"timeline":[{"kind":"published","date":"2021-07-26T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:56.106Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,2,59],"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.01503,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-08-03T23:33:56.106Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2024-08-03T23:33:56.106Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2024-08-03T23:33:56.106Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T23:33:56.106Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T23:33:56.106Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","version":"2.0"}],"epss":{"value":0.01503,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T11:16:59.273Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T11:16:59.802Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T11:16:59.995Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T11:01:01.512Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T11:16:57.726Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T11:16:56.764Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T11:30:41.039Z","stale":false,"partial":false}}