{"api_version":"1","generated_at":"2026-04-23T11:34:44+00:00","cve":"CVE-2023-30571","urls":{"html":"https://cve.report/CVE-2023-30571","api":"https://cve.report/api/cve/CVE-2023-30571.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-30571","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-30571"},"summary":{"title":"CVE-2023-30571","description":"Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time; a race condition with another thread can lead to a permanent umask 0 setting. Such a race condition could lead to implicit directory creation with permissions 0777 (without the sticky bit), which means that any low-privileged local user can delete and rename files inside those directories.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2023-05-29 20:15:00","updated_at":"2023-06-05 16:40:00"},"problem_types":["CWE-362"],"metrics":[],"references":[{"url":"https://github.com/libarchive/libarchive/issues/1876","name":"https://github.com/libarchive/libarchive/issues/1876","refsource":"MISC","tags":[],"title":"Race condition in multi-threaded use of archive_write_disk_header() on posix based systems · Issue #1876 · libarchive/libarchive · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/g/libarchive-announce","name":"https://groups.google.com/g/libarchive-announce","refsource":"MISC","tags":[],"title":"libarchive-announce - Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30571","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30571","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"30571","vulnerable":"1","versionEndIncluding":"3.6.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libarchive","cpe5":"libarchive","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2023-30571","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":"Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time; a race condition with another thread can lead to a permanent umask 0 setting. Such a race condition could lead to implicit directory creation with permissions 0777 (without the sticky bit), which means that any low-privileged local user can delete and rename files inside those directories."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://groups.google.com/g/libarchive-announce","refsource":"MISC","name":"https://groups.google.com/g/libarchive-announce"},{"refsource":"MISC","name":"https://github.com/libarchive/libarchive/issues/1876","url":"https://github.com/libarchive/libarchive/issues/1876"}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R","version":"3.1"}}},"nvd":{"publishedDate":"2023-05-29 20:15:00","lastModifiedDate":"2023-06-05 16:40:00","problem_types":["CWE-362"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":1,"impactScore":4.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*","versionEndIncluding":"3.6.2","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}