{"schemaVersion":3,"id":"CVE-2021-40633","aliases":["ALPINE-CVE-2021-40633","UBUNTU-CVE-2021-40633","DEBIAN-CVE-2021-40633"],"status":"published","duplicateOf":null,"title":null,"description":"A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allows remote attackers trigger an out of memory exception or denial of service via a gif format file.","dates":{"published":"2022-06-14T10:22:11.000Z","modified":"2024-08-04T02:44:10.819Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.1,"severity":"medium","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01717,"percentile":0.77089,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01717},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01717,"percentile":0.77089}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01717,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01717,"percentile":0.77089}]},"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":[{"id":"REF_0B6C3EBDE02B1AFB","name":"Exploit Reference (sourceforge.net)","source":"reference","url":"https://sourceforge.net/p/giflib/bugs/157/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime","description":"The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/401.html"}],"affected":[{"vendor":"alpine","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/giflib","purlType":"apk","versions":[{"text":"< 5.2.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.2-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/giflib","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.2.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.2.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"giflib","name":"giflib","label":"giflib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/giflib","purlType":"deb","versions":[{"text":"< 5.1.4-0.3~16.04.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.4-2ubuntu0.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.9-1ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.9-2ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-0.3~16.04.1+esm1 | < 5.1.4-2ubuntu0.1+esm1 | < 5.1.9-1ubuntu0.1 | < 5.1.9-2ubuntu0.1","eol":null,"hubHref":null},{"vendor":"giflib_project","product":"giflib","name":"giflib","label":"giflib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"5.1.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.1.4","eol":null,"hubHref":"/vendor/giflib_project/giflib"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://sourceforge.net/p/giflib/bugs/157/","label":"sourceforge.net/p/giflib/bugs/157/","hostname":"sourceforge.net","tags":["X Refsource MISC","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-40633","label":"security.alpinelinux.org/vuln/CVE-2021-40633","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40633","label":"ubuntu.com/security/CVE-2021-40633","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40633","label":"www.cve.org/CVERecord?id=CVE-2021-40633","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6824-1","label":"ubuntu.com/security/notices/USN-6824-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40633","label":"security-tracker.debian.org/tracker/CVE-2021-40633","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40633","label":"nvd.nist.gov/vuln/detail/CVE-2021-40633","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:13723-1","SUSE-SU-2024:0786-1","SUSE-SU-2024:1622-1","USN-6824-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:13723-1","SUSE-SU-2024:0786-1","SUSE-SU-2024:1622-1","USN-6824-1"]},"timeline":[{"kind":"published","date":"2022-06-14T10:22:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:44:10.819Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":46,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:36:16.210Z","stale":false,"partial":false}}