{"id":"CVE-2020-13671","aliases":["CVE-2020-13671","GHSA-68jc-v27h-vhmw","BIT-DRUPAL-2020-13671","DRUPAL-CORE-2020-012"],"related":[],"kind":"vulnerability","state":"published","title":"Drupal core Unrestricted Upload of File with Dangerous Type","summary":"Drupal core does not properly sanitize certain filenames on uploaded files, which can lead to files being interpreted as the incorrect extension and served as the wrong MIME type or executed as PHP for certain hosting configurations. This issue affects: Drupal Drupal Core 9.0 versions prior to 9.0.8, 8.9 versions prior to 8.9.9, 8.8 versions prior to 8.8.11, and 7 versions prior to 7.74.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Drupal core does not properly sanitize certain filenames on uploaded files, which can lead to files being interpreted as the incorrect extension and served as the wrong MIME type or executed as PHP for certain hosting configurations. This issue affects: Drupal Drupal Core 9.0 versions prior to 9.0.8, 8.9 versions prior to 8.9.9, 8.8 versions prior to 8.8.11, and 7 versions prior to 7.74.","source":"cvelist"},{"lang":"en","text":"*Update November 18: Documented longer list of dangerous file extensions*\n\nDrupal core does not properly sanitize certain filenames on uploaded files, which can lead to files being interpreted as the incorrect extension and served as the wrong MIME type or executed as PHP for certain hosting configurations.","format":"markdown","source":"drupal"},{"lang":"es","text":"Drupal core no sanea apropiadamente determinados nombres de archivo en los archivos cargados, lo que puede conllevar a unos archivos ser interpretados como la extensión incorrecta y servir como el tipo MIME incorrecto o ser ejecutados como PHP para determinadas configuraciones de alojamiento.&#xa0;Este problema afecta: Drupal Drupal Core versiones 9.0 anteriores a 9.0.8, versiones 8.9 anteriores a 8.9.9, versiones 8.8 anteriores a 8.8.11 y  versiones 7 anteriores a 7.74","source":"nvd"},{"lang":"en","text":"Improper sanitization in the extension file names is present in Drupal core.","source":"kev"}],"published":"2020-11-18T17:18:31.000Z","modified":"2026-09-19T17:38:35.000Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"9.0 versions prior to 9.0.8","status":"affected"},{"version":"8.9 versions prior to 8.9.9","status":"affected"},{"version":"8.8 versions prior to 8.8.11","status":"affected"},{"version":"7 versions prior to 7.74","status":"affected"}],"vendor":"Drupal","product":"Drupal Core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.8"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.9.0","status":"affected","fixed":"8.9.9"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.8.11"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.74"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.74"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.8.11"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.9.0","status":"affected","fixed":"8.9.9"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.8"}],"ecosystem":"Packagist","package":"drupal/drupal","purl":"pkg:composer/drupal/drupal","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.8.11"},{"type":"ecosystem","introduced":"8.9.0","status":"affected","fixed":"8.9.9"},{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.8"}],"ecosystem":"Packagist","package":"drupal/core","purl":"pkg:composer/drupal/core","source":"drupal"},{"ranges":[{"status":"affected","introduced":"7.0","fixed":"7.74"},{"status":"affected","introduced":"8.8.0","fixed":"8.8.11"},{"status":"affected","introduced":"8.9.0","fixed":"8.9.9"},{"status":"affected","introduced":"9.0.0","fixed":"9.0.8"}],"vendor":"drupal","product":"drupal","cpe":"cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.74.0"},{"type":"semver","introduced":"8.8.0","status":"affected","fixed":"8.8.11"},{"type":"semver","introduced":"8.9.0","status":"affected","fixed":"8.9.9"},{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.0.8"}],"ecosystem":"Bitnami","package":"drupal","purl":"pkg:bitnami/drupal","source":"bitnami"},{"ranges":[],"vendor":"Drupal","product":"Drupal core","source":"kev"}],"references":[{"url":"https://www.drupal.org/sa-core-2020-012","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","drupal","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT/","tags":["discussion","mailing-list","release-notes","vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437/","tags":["discussion","mailing-list","release-notes","vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-13671","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13671","tags":["advisory","kev","web"],"sources":["ghsa","bitnami","kev"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2020-13671.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2020-13671.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/drupal/core","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT","tags":["web"],"sources":["ghsa"]}],"credits":["Derek Wright","Frédéric G. Marand","Mark Ferree","Samuel Mortenson","ufku"],"assigner":"drupal","kev":{"dateAdded":"2022-01-18","dueDate":"2022-07-18","name":"Drupal core Un-restricted Upload of File","requiredAction":"Apply updates per vendor instructions.","ransomware":false,"notes":"https://nvd.nist.gov/vuln/detail/CVE-2020-13671"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2025-02-07T12:38:31.133Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-13671","url":"https://www.cve.org/CVERecord?id=CVE-2020-13671","licence":"CVE Terms of Use","modified":"2025-10-21T23:35:32.528Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-68jc-v27h-vhmw","url":"https://github.com/advisories/GHSA-68jc-v27h-vhmw","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:21.622Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CORE-2020-012","url":"https://osv.dev/vulnerability/DRUPAL-CORE-2020-012","licence":"MIT","modified":"2026-09-19T17:38:35.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-13671","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13671","licence":"Public domain","modified":"2026-06-17T02:53:32.867Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DRUPAL-2020-13671","url":"https://osv.dev/vulnerability/BIT-DRUPAL-2020-13671","licence":"Apache-2.0","modified":"2026-09-08T08:47:04.365Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2020-13671","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2020-13671","licence":"CC0-1.0","modified":"2022-01-18T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:57:55.898Z","epss":{"score":0.32568,"percentile":0.98371,"date":"2026-12-02T12:00:21.000Z"}}