{"api_version":"1","generated_at":"2026-07-23T14:54:44+00:00","cve":"CVE-2021-21235","urls":{"html":"https://cve.report/CVE-2021-21235","api":"https://cve.report/api/cve/CVE-2021-21235.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21235","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21235"},"summary":{"title":"CVE-2021-21235","description":"kamadak-exif is an exif parsing library written in pure Rust. In kamadak-exif version 0.5.2, there is an infinite loop in parsing crafted PNG files. Specifically, reader::read_from_container can cause an infinite loop when a crafted PNG file is given. This is fixed in version 0.5.3. No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-01-06 02:15:00","updated_at":"2022-10-19 13:00:00"},"problem_types":["CWE-835"],"metrics":[],"references":[{"url":"https://crates.io/crates/kamadak-exif","name":"https://crates.io/crates/kamadak-exif","refsource":"MISC","tags":["Product","Third Party Advisory"],"title":"crates.io: Rust Package Registry","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","name":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Infinite loop in parsing PNG files · Advisory · kamadak/exif-rs · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","name":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Fix an infinite loop in reading PNG files. · kamadak/exif-rs@f21df24 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21235","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21235","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21235","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"kamadak-exif_project","cpe5":"kamadak-exif","cpe6":"0.5.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21235","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"kamadak-exif_project","cpe5":"kamadak-exif","cpe6":"0.5.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21235","STATE":"PUBLIC","TITLE":"Infinite loop in parsing PNG files in"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"exif-rs","version":{"version_data":[{"version_value":"= 0.5.2"}]}}]},"vendor_name":"kamadak"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"kamadak-exif is an exif parsing library written in pure Rust. In kamadak-exif version 0.5.2, there is an infinite loop in parsing crafted PNG files. Specifically, reader::read_from_container can cause an infinite loop when a crafted PNG file is given. This is fixed in version 0.5.3. No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.7,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-400: Uncontrolled Resource Consumption"}]}]},"references":{"reference_data":[{"name":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","refsource":"CONFIRM","url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2"},{"name":"https://crates.io/crates/kamadak-exif","refsource":"MISC","url":"https://crates.io/crates/kamadak-exif"},{"name":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","refsource":"MISC","url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48"}]},"source":{"advisory":"GHSA-px9g-8hgv-jvg2","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-01-06 02:15:00","lastModifiedDate":"2022-10-19 13:00:00","problem_types":["CWE-835"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21235","Ordinal":"195361","Title":"CVE-2021-21235","CVE":"CVE-2021-21235","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21235","Ordinal":"1","NoteData":"kamadak-exif is an exif parsing library written in pure Rust. In kamadak-exif version 0.5.2, there is an infinite loop in parsing crafted PNG files. Specifically, reader::read_from_container can cause an infinite loop when a crafted PNG file is given. This is fixed in version 0.5.3. No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21235","Ordinal":"2","NoteData":"2021-01-05","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21235","Ordinal":"3","NoteData":"2021-01-05","Type":"Other","Title":"Modified"}]}}}