{"answers":{"affected":"2 open source packages ship an affected version, including dompdf/dompdf. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-28368 exists.","fix":"Upgrade dompdf/dompdf to 1.2.1 or later.","what":"CVE-2022-28368 is a critical code injection vulnerability in n/a, published on 3 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-28368 and fix it if it is affected.\n\nWhat it is: CVE-2022-28368 is a critical code injection vulnerability in n/a, published on 3 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-28368 exists.\n\nAffected packages and fixed versions:\n- dompdf/dompdf (Packagist): affected all versions; fixed in 1.2.1\n- dompdf/dompdf (Packagist): affected all versions; fixed in 1.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-28368/ (Markdown: https://insights.sbomify.com/CVE-2022-28368/index.md)","id":"CVE-2022-28368","markdown":"https://insights.sbomify.com/CVE-2022-28368/index.md","name":"CVE-2022-28368","record":{"aliases":["GHSA-x752-qjv4-c4hc"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP PDF library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code by uploading a PHP file referenced in a CSS font-face URL within an HTML input.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"dompdf","vendor":"dompdf_project"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Dompdf 1.2.1 allows remote code execution via a .php file in the src:url field of an @font-face Cascading Style Sheets (CSS) statement (within an HTML input file).","ecosystems":["Packagist"],"exploits":{"exploitdb":1,"first_seen":"2022-04-05","github_poc":3,"max_poc_stars":16,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-02-13T08:10:00Z","kind":"github_poc","ref":"https://github.com/rvzsec/CVE-2022-28368","stars":16,"title":"Dompdf RCE PoC Exploit - CVE-2022-28368"},{"date":"2022-04-05","kind":"metasploit","ref":"exploit/multi/http/dompdf_rce_cve_2022_28368","stars":null,"title":"Dompdf RCE via Malicious Font Caching (CVE-2022-28368)"},{"date":"2023-04-06","kind":"exploitdb","ref":"51270","stars":null,"title":"Dompdf 1.2.1 - Remote Code Execution (RCE)"},{"date":"2023-04-28T09:49:05Z","kind":"github_poc","ref":"https://github.com/That-Guy-Steve/CVE-2022-28368-handler","stars":0,"title":"This repository contains a python script that will handle the majority of the dompdf cached font exploit (CVE-2022-28368), all you need to do is create the request"},{"date":"2023-05-07T14:49:38Z","kind":"github_poc","ref":"https://github.com/Henryisnotavailable/Dompdf-Exploit-RCE","stars":0,"title":"An exploit script for CVE-2022-28368 designed to make exploitation less annoying, made for a HTB machine"}],"tier":"weaponised"},"has_fix":true,"headline":"Remote code injection in dompdf/dompdf","id":"CVE-2022-28368","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":2,"n_references":7,"next":{"headline":"File upload in n/a","id":"CVE-2022-28369"},"packages":[{"ecosystem":"Packagist","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"dompdf/dompdf","purl":null,"source":"GHSA-x752-qjv4-c4hc"},{"ecosystem":"Packagist","fixed":["1.2.1"],"introduced":["0"],"last_affected":[],"package":"dompdf/dompdf","purl":"pkg:composer/dompdf/dompdf","source":"GHSA-x752-qjv4-c4hc"}],"prev":{"headline":"Cross-site Scripting in OWASP AntiSamy","id":"CVE-2022-28367"},"products":["n/a"],"published":"2022-04-03","related":[{"cvss_score":10,"headline":"URI validation failure on SVG parsing. Bypass of CVE-2023-23924","id":"CVE-2023-24813","kev_date_added":null,"published":"2023-02-07"},{"cvss_score":10,"headline":"URI validation failure on SVG parsing in Dompdf","id":"CVE-2023-23924","kev_date_added":null,"published":"2023-01-31"},{"cvss_score":9.8,"headline":"PHAR Deserialization in dompdf/dompdf","id":"CVE-2021-3838","kev_date_added":null,"published":"2024-11-15"},{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in dompdf/dompdf","id":"CVE-2021-3902","kev_date_added":null,"published":"2024-11-15"},{"cvss_score":8.8,"headline":"DOMPDF Remote Code Execution","id":"CVE-2014-5013","kev_date_added":null,"published":"2020-01-10"},{"cvss_score":7.5,"headline":"Dompdf allows remote file inclusion because URI validation failure does not halt font registration","id":"CVE-2022-41343","kev_date_added":null,"published":"2022-09-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code by uploading a PHP file referenced in a CSS font-face URL within an HTML input.","url":"https://insights.sbomify.com/CVE-2022-28368/"}