{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-32142 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-32142 is a high-severity memory corruption vulnerability in Libraw Libraw, published on 17 Feb 2023. 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-2021-32142 and fix it if it is affected.\n\nWhat it is: CVE-2021-32142 is a high-severity memory corruption vulnerability in Libraw Libraw, published on 17 Feb 2023. 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-2021-32142 in the wild and no public exploit code.\n\nAffected product: Libraw Libraw. 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-2021-32142/ (Markdown: https://insights.sbomify.com/CVE-2021-32142/index.md)","id":"CVE-2021-32142","markdown":"https://insights.sbomify.com/CVE-2021-32142/index.md","name":"CVE-2021-32142","record":{"aliases":["ALSA-2023:6343","ALSA-2024:2994","AZL-43756","AZL-45267","CLSA-2025-1745427138","DEBIAN-CVE-2021-32142","GHSA-2vqp-59qv-pmrc","MGASA-2023-0082","OESA-2024-1339","OESA-2024-1446","OESA-2024-1447","OESA-2024-1448","OESA-2024-1449","OESA-2024-1450","RHSA-2023:6343","RHSA-2024:0343","RHSA-2024:2994","RLSA-2024:2994","SUSE-SU-2023:0510-1","SUSE-SU-2023:0511-1","SUSE-SU-2023:0512-1","UBUNTU-CVE-2021-32142"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LibRaw image library","requires_auth":"none","summary":"A buffer overflow in LibRaw allows attackers to escalate privileges or execute code via crafted image data.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"libraw","vendor":"libraw"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","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"}],"description":"Buffer Overflow vulnerability in LibRaw linux/unix v0.20.0 allows attacker to escalate privileges via the LibRaw_buffer_datastream::gets(char*, int) in /src/libraw/src/libraw_datastream.cpp.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Rocky Linux:8","SUSE:Linux Enterprise Module for Desktop Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","SUSE:Linux Enterprise Workstation Extension 15 SP4","openSUSE:Leap 15.4"],"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 n/a","id":"CVE-2021-32142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libraw:libraw","products":["libraw:libraw"],"type":"memory_corruption","year":"2021"},"n_packages":40,"n_references":8,"next":{"headline":"Cross-site request forgery in n/a","id":"CVE-2021-32156"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/almalinux/LibRaw","source":"ALSA-2024:2994"},{"ecosystem":"AlmaLinux:8","fixed":["0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/almalinux/LibRaw-devel","source":"ALSA-2024:2994"},{"ecosystem":"AlmaLinux:9","fixed":["0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/almalinux/LibRaw","source":"ALSA-2023:6343"},{"ecosystem":"AlmaLinux:9","fixed":["0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/almalinux/LibRaw-devel","source":"ALSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/redhat/LibRaw","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/redhat/LibRaw-devel","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-static","purl":"pkg:rpm/redhat/LibRaw-static","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/redhat/LibRaw","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/redhat/LibRaw-devel","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-static","purl":"pkg:rpm/redhat/LibRaw-static","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/redhat/LibRaw","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/redhat/LibRaw-devel","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:0.19.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-static","purl":"pkg:rpm/redhat/LibRaw-static","source":"RHSA-2024:0343"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/redhat/LibRaw","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debugsource","purl":"pkg:rpm/redhat/LibRaw-debugsource","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-samples-debuginfo","purl":"pkg:rpm/redhat/LibRaw-samples-debuginfo","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debugsource","purl":"pkg:rpm/redhat/LibRaw-debugsource","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/redhat/LibRaw-devel","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw-samples-debuginfo","purl":"pkg:rpm/redhat/LibRaw-samples-debuginfo","source":"RHSA-2024:2994"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/redhat/LibRaw","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debugsource","purl":"pkg:rpm/redhat/LibRaw-debugsource","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-samples-debuginfo","purl":"pkg:rpm/redhat/LibRaw-samples-debuginfo","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debuginfo","purl":"pkg:rpm/redhat/LibRaw-debuginfo","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-debugsource","purl":"pkg:rpm/redhat/LibRaw-debugsource","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-devel","purl":"pkg:rpm/redhat/LibRaw-devel","source":"RHSA-2023:6343"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["0:0.20.2-6.el9"],"introduced":["0"],"last_affected":[],"package":"LibRaw-samples-debuginfo","purl":"pkg:rpm/redhat/LibRaw-samples-debuginfo","source":"RHSA-2023:6343"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.19.5-4.el8"],"introduced":["0"],"last_affected":[],"package":"LibRaw","purl":"pkg:rpm/rocky-linux/LibRaw?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:2994"},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP4","fixed":["0.20.2-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/suse/libraw\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4","source":"SUSE-SU-2023:0512-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["0.15.4-36.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/suse/libraw\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2023:0510-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["0.15.4-36.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/suse/libraw\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP5","source":"SUSE-SU-2023:0510-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 15 SP4","fixed":["0.18.9-150000.3.17.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/suse/libraw\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP4","source":"SUSE-SU-2023:0511-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 15 SP4","fixed":["0.20.2-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/suse/libraw\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP4","source":"SUSE-SU-2023:0512-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["0.18.9-150000.3.17.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/opensuse/libraw\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0511-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["0.20.2-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"libraw","purl":"pkg:rpm/opensuse/libraw\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0512-1"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2021-32139"},"products":["n/a"],"published":"2023-02-17","related":[{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-20889","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-20911","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-21413","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2015-8366","kev_date_added":null,"published":"2020-01-14"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2015-8367","kev_date_added":null,"published":"2020-01-14"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-14265","kev_date_added":null,"published":"2017-09-11"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2017-6886","kev_date_added":null,"published":"2017-05-16"}],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-19","vendors":["n/a"]},"summary":"A buffer overflow in LibRaw allows attackers to escalate privileges or execute code via crafted image data.","url":"https://insights.sbomify.com/CVE-2021-32142/"}