{"api_version":"1","generated_at":"2026-04-07T22:29:23+00:00","cve":"CVE-2021-32142","urls":{"html":"https://cve.report/CVE-2021-32142","api":"https://cve.report/api/cve/CVE-2021-32142.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32142","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32142"},"summary":{"title":"CVE-2021-32142","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2023-02-17 18:15:00","updated_at":"2023-11-07 03:35:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5ICTVDRGBWGIFBTUWJLGX7QM5GWBWUG7/","name":"FEDORA-2023-be842ba7fb","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: mingw-LibRaw-0.20.2-8.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/LibRaw/LibRaw/issues/400","name":"https://github.com/LibRaw/LibRaw/issues/400","refsource":"MISC","tags":[],"title":"stack-buffer-over in libRaw · Issue #400 · LibRaw/LibRaw · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49","name":"https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49","refsource":"MISC","tags":[],"title":"check for input buffer size on datastream::gets · LibRaw/LibRaw@bc3aaf4 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2023/dsa-5412","name":"DSA-5412","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5412-1 libraw","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E7TEZ7CLRNYYQZJ5NJGZXK6YJU46WH2L/","name":"FEDORA-2023-220878f1bf","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: mingw-LibRaw-0.20.2-8.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/gtt1995","name":"https://github.com/gtt1995","refsource":"MISC","tags":[],"title":"gtt1995 (taotao gu) · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E7TEZ7CLRNYYQZJ5NJGZXK6YJU46WH2L/","name":"FEDORA-2023-220878f1bf","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: mingw-LibRaw-0.20.2-8.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5ICTVDRGBWGIFBTUWJLGX7QM5GWBWUG7/","name":"FEDORA-2023-be842ba7fb","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: mingw-LibRaw-0.20.2-8.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.libraw.org/","name":"https://www.libraw.org/","refsource":"MISC","tags":[],"title":"About LibRaw | LibRaw","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00025.html","name":"[debian-lts-announce] 20230527 [SECURITY] [DLA 3433-1] libraw security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3433-1] libraw security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32142","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32142","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32142","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libraw","cpe5":"libraw","cpe6":"0.20.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32142","qid":"161130","title":"Oracle Enterprise Linux Security Update for libraw (ELSA-2023-6343)"},{"cve":"CVE-2021-32142","qid":"161306","title":"Oracle Enterprise Linux Security Update for libraw (ELSA-2024-0343)"},{"cve":"CVE-2021-32142","qid":"181806","title":"Debian Security Update for libraw (DLA 3433-1)"},{"cve":"CVE-2021-32142","qid":"181809","title":"Debian Security Update for libraw (DSA 5412-1)"},{"cve":"CVE-2021-32142","qid":"184434","title":"Debian Security Update for libraw (CVE-2021-32142)"},{"cve":"CVE-2021-32142","qid":"199394","title":"Ubuntu Security Notification for LibRaw Vulnerabilities (USN-6137-1)"},{"cve":"CVE-2021-32142","qid":"242334","title":"Red Hat Update for libraw (RHSA-2023:6343)"},{"cve":"CVE-2021-32142","qid":"242735","title":"Red Hat Update for libraw (RHSA-2024:0343)"},{"cve":"CVE-2021-32142","qid":"257298","title":"CentOS Security Update for LibRaw (CESA-2024:0343)"},{"cve":"CVE-2021-32142","qid":"283787","title":"Fedora Security Update for mingw (FEDORA-2023-be842ba7fb)"},{"cve":"CVE-2021-32142","qid":"283788","title":"Fedora Security Update for mingw (FEDORA-2023-220878f1bf)"},{"cve":"CVE-2021-32142","qid":"356139","title":"Amazon Linux Security Advisory for LibRaw : ALAS2-2023-2256"},{"cve":"CVE-2021-32142","qid":"379350","title":"Alibaba Cloud Linux Security Update for libraw (ALINUX2-SA-2024:0008)"},{"cve":"CVE-2021-32142","qid":"753788","title":"SUSE Enterprise Linux Security Update for libraw (SUSE-SU-2023:0510-1)"},{"cve":"CVE-2021-32142","qid":"941361","title":"AlmaLinux Security Update for LibRaw (ALSA-2023:6343)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-32142","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/LibRaw/LibRaw/issues/400","refsource":"MISC","name":"https://github.com/LibRaw/LibRaw/issues/400"},{"url":"https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49","refsource":"MISC","name":"https://github.com/LibRaw/LibRaw/commit/bc3aaf4223fdb70d52d470dae65c5a7923ea2a49"},{"url":"https://github.com/gtt1995","refsource":"MISC","name":"https://github.com/gtt1995"},{"url":"https://www.libraw.org/","refsource":"MISC","name":"https://www.libraw.org/"},{"refsource":"FEDORA","name":"FEDORA-2023-220878f1bf","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/E7TEZ7CLRNYYQZJ5NJGZXK6YJU46WH2L/"},{"refsource":"FEDORA","name":"FEDORA-2023-be842ba7fb","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5ICTVDRGBWGIFBTUWJLGX7QM5GWBWUG7/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230527 [SECURITY] [DLA 3433-1] libraw security update","url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00025.html"},{"refsource":"DEBIAN","name":"DSA-5412","url":"https://www.debian.org/security/2023/dsa-5412"}]}},"nvd":{"publishedDate":"2023-02-17 18:15:00","lastModifiedDate":"2023-11-07 03:35:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:libraw:libraw:0.20.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32142","Ordinal":"207521","Title":"CVE-2021-32142","CVE":"CVE-2021-32142","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32142","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}