{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-35492 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2020-35492 is a high-severity memory corruption vulnerability in cairo, published on 18 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-35492 and fix it if it is affected.\n\nWhat it is: CVE-2020-35492 is a high-severity memory corruption vulnerability in cairo, published on 18 Mar 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-35492 in the wild and no public exploit code.\n\nAffected product: cairo. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-35492/ (Markdown: https://insights.sbomify.com/CVE-2020-35492/index.md)","id":"CVE-2020-35492","markdown":"https://insights.sbomify.com/CVE-2020-35492/index.md","name":"CVE-2020-35492","record":{"aliases":["ALPINE-CVE-2020-35492","ALSA-2022:1961","CLSA-2026-1787645764","DEBIAN-CVE-2020-35492","DLA-2518-1","GHSA-65pg-7gjm-q28m","JLSEC-2025-17","MGASA-2021-0028","OESA-2021-1155","RHSA-2022:1961","RLSA-2022:1961","UBUNTU-CVE-2020-35492"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cairo graphics library","requires_auth":"none","summary":"A stack buffer overflow in Cairo's image-compositor allows attackers to execute arbitrary code or cause denial of service via crafted input files.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cairo","vendor":"cairographics"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"A flaw was found in cairo's image-compositor.c in all versions prior to 1.17.4. This flaw allows an attacker who can provide a crafted input file to cairo's image-compositor (for example, by convincing a user to open a file in an application using cairo, or if an application uses cairo on untrusted input) to cause a stack buffer overflow -\u003e out-of-bounds WRITE. The highest impact from this vulnerability is to confidentiality, integrity, as well as system availability.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory corruption in cairo","id":"CVE-2020-35492","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2020"},"n_packages":16,"n_references":2,"next":{"headline":"Memory corruption in binutils","id":"CVE-2020-35493"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo","purl":"pkg:rpm/almalinux/cairo","source":"ALSA-2022:1961"},{"ecosystem":"AlmaLinux:8","fixed":["1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-devel","purl":"pkg:rpm/almalinux/cairo-devel","source":"ALSA-2022:1961"},{"ecosystem":"AlmaLinux:8","fixed":["1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-gobject","purl":"pkg:rpm/almalinux/cairo-gobject","source":"ALSA-2022:1961"},{"ecosystem":"AlmaLinux:8","fixed":["1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-gobject-devel","purl":"pkg:rpm/almalinux/cairo-gobject-devel","source":"ALSA-2022:1961"},{"ecosystem":"AlmaLinux:8","fixed":["0.38.4-2.el8"],"introduced":["0"],"last_affected":[],"package":"pixman","purl":"pkg:rpm/almalinux/pixman","source":"ALSA-2022:1961"},{"ecosystem":"AlmaLinux:8","fixed":["0.38.4-2.el8"],"introduced":["0"],"last_affected":[],"package":"pixman-devel","purl":"pkg:rpm/almalinux/pixman-devel","source":"ALSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo","purl":"pkg:rpm/redhat/cairo","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-debuginfo","purl":"pkg:rpm/redhat/cairo-debuginfo","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-debugsource","purl":"pkg:rpm/redhat/cairo-debugsource","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-devel","purl":"pkg:rpm/redhat/cairo-devel","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-gobject","purl":"pkg:rpm/redhat/cairo-gobject","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-gobject-debuginfo","purl":"pkg:rpm/redhat/cairo-gobject-debuginfo","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-gobject-devel","purl":"pkg:rpm/redhat/cairo-gobject-devel","source":"RHSA-2022:1961"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo-tools-debuginfo","purl":"pkg:rpm/redhat/cairo-tools-debuginfo","source":"RHSA-2022:1961"},{"ecosystem":"Rocky Linux:8","fixed":["0:1.15.12-6.el8"],"introduced":["0"],"last_affected":[],"package":"cairo","purl":"pkg:rpm/rocky-linux/cairo?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2022:1961"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.38.4-2.el8"],"introduced":["0"],"last_affected":[],"package":"pixman","purl":"pkg:rpm/rocky-linux/pixman?distro=rocky-linux-8-6-legacy\u0026epoch=0","source":"RLSA-2022:1961"}],"prev":{"headline":"Serialization gadgets exploit in jackson-databind","id":"CVE-2020-35491"},"products":["cairo"],"published":"2021-03-18","related":[{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2017-9814","kev_date_added":null,"published":"2017-07-14"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2016-3190","kev_date_added":null,"published":"2016-04-21"},{"cvss_score":6.5,"headline":"Denial of service in n/a","id":"CVE-2019-6461","kev_date_added":null,"published":"2019-01-16"},{"cvss_score":6.5,"headline":"Denial of service in n/a","id":"CVE-2019-6462","kev_date_added":null,"published":"2019-01-16"},{"cvss_score":6.5,"headline":"Use after free in n/a","id":"CVE-2018-19876","kev_date_added":null,"published":"2018-12-05"},{"cvss_score":6.5,"headline":"Memory corruption in n/a","id":"CVE-2018-18064","kev_date_added":null,"published":"2018-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["n/a"]},"summary":"A stack buffer overflow in Cairo's image-compositor allows attackers to execute arbitrary code or cause denial of service via crafted input files.","url":"https://insights.sbomify.com/CVE-2020-35492/"}