{"id":"UBUNTU-CVE-2021-31320","details":"Telegram Android \u003c7.1.0 (2090), Telegram iOS \u003c7.1, and Telegram macOS \u003c7.1 are affected by a Heap Buffer Overflow in the VGradientCache::generateGradientColorTable function of their custom fork of the rlottie library. A remote attacker might be able to overwrite heap memory out-of-bounds on a victim device via a malicious animated sticker.","modified":"2026-04-22T12:53:08.972651Z","published":"2021-05-18T20:15:00Z","related":["USN-7198-1"],"upstream":["CVE-2021-31320"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-31320"},{"type":"REPORT","url":"https://www.shielder.it/advisories/telegram-rlottie-vgradientcache-generategradientcolortable-heap-buffer-overflow/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-31320"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7198-1"}],"affected":[{"package":{"name":"rlottie","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/rlottie@0~git20200305.a717479+dfsg-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0~git20200305.a717479+dfsg-1ubuntu0.1~esm1"}]}],"versions":["0~git20190721.24346d0+dfsg-2","0~git20190721.24346d0+dfsg-2build1","0~git20200305.a717479+dfsg-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"0~git20200305.a717479+dfsg-1ubuntu0.1~esm1","binary_name":"librlottie0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31320.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}