{"id":"CVE-2022-41343","published":"2022-09-25T00:00:00Z","modified":"2025-05-22T14:41:32Z","title":"registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure…","vendor":null,"product":null,"tier":"tail","description":{"text":"registerFont in FontMetrics.php in Dompdf before 2.0.1 allows remote file inclusion because a URI validation failure does not halt font registration, as demonstrated by a @font-face rule.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.06379,"percentile":0.93821,"provenance":"source"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"references":[{"url":"https://github.com/dompdf/dompdf/issues/2994","tags":[]},{"url":"https://github.com/dompdf/dompdf/pull/2995","tags":[]},{"url":"https://github.com/dompdf/dompdf/releases/tag/v2.0.1","tags":[]},{"url":"https://tantosec.com/blog/cve-2022-41343/","tags":[]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":18.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-02-15","earliestUrl":"https://github.com/BKreisel/CVE-2022-41343","repos":[{"name":"BKreisel/CVE-2022-41343","url":"https://github.com/BKreisel/CVE-2022-41343","stars":3,"created":"2023-02-15"}]},"first":{"date":"2023-02-15","source":"PoC-in-GitHub","url":"https://github.com/BKreisel/CVE-2022-41343"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-22T14:40:39.590742Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"dompdf/dompdf","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-6x28-7h8c-chx4"],"provenance":"source"}],"summary":{"text":"The registerFont function in FontMetrics.php in Dompdf before version 2.0.1 contains a flaw where a failed URI validation does not stop font registration, so remote file inclusion is possible. An attacker with network access can exploit this without authentication or user interaction, for example through a crafted @font-face rule, to get the server to include and read files it should not expose.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:18Z"},"euvd":{"id":"EUVD-2022-6724","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-dompdf-dompdf-cve-2022-28368","parents":[{"from":"CVE-2022-28368","to":"CVE-2022-41343","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/FontMetrics.php"],"commits":["https://github.com/dompdf/dompdf/commit/4c70e1025bcd9b7694b95dd552499bd83cd6141d","https://github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2"],"basis":"shared function","functions":["registerFont"]}]},{"from":"CVE-2022-2400","to":"CVE-2022-41343","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/FontMetrics.php"],"commits":["https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a","https://github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2"],"basis":"shared function","functions":["registerFont"]}]}],"children":[{"from":"CVE-2022-41343","to":"CVE-2021-3838","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/FontMetrics.php"],"commits":["https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a","https://github.com/dompdf/dompdf/commit/66431c58017d5b1bdb9f6f772b9fbbc5e3d38dc2"],"basis":"shared function","functions":["registerFont"]}]}],"packageHistory":[{"cve":"CVE-2021-3902","published":"2024-11-15","fixed":"2.0.0","kev":false},{"cve":"CVE-2022-0085","published":"2022-06-28","fixed":"2.0.0","kev":false},{"cve":"CVE-2022-2400","published":"2022-07-18","fixed":"2.0.0","kev":false},{"cve":"CVE-2022-41343","published":"2022-09-25","fixed":"2.0.1","kev":false},{"cve":"CVE-2023-23924","published":"2023-01-31","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2022-41343","to":"CVE-2023-23924","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:dompdf/dompdf","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":128}]}},{"cve":"CVE-2023-24813","published":"2023-02-07","fixed":"2.0.3","kev":false},{"cve":"CVE-2023-50262","published":"2023-12-13","fixed":"2.0.4","kev":false}],"package":"Packagist:dompdf/dompdf"}}