{"answers":{"affected":"10 open source packages ship an affected version, including getkirby/cms. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-38488 in the wild and no public exploit code.","fix":"Upgrade getkirby/cms to a fixed version for your release line: 3.5.8.3, 3.6.6.3, 3.7.5.2 or 3.8.4.1.","what":"CVE-2023-38488 is a high-severity code injection vulnerability in getkirby kirby, published on 27 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-38488 and fix it if it is affected.\n\nWhat it is: CVE-2023-38488 is a high-severity code injection vulnerability in getkirby kirby, published on 27 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-38488 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- getkirby/cms (Packagist): affected all versions; fixed in 3.5.8.3\n- getkirby/cms (Packagist): affected all versions; fixed in 3.5.8.3\n- getkirby/cms (Packagist): affected from 3.6.0; fixed in 3.6.6.3\n- getkirby/cms (Packagist): affected from 3.6.0; fixed in 3.6.6.3\n- getkirby/cms (Packagist): affected from 3.7.0; fixed in 3.7.5.2\n- getkirby/cms (Packagist): affected from 3.7.0; fixed in 3.7.5.2\n- getkirby/cms (Packagist): affected from 3.8.0; fixed in 3.8.4.1\n- getkirby/cms (Packagist): affected from 3.8.0; fixed in 3.8.4.1\n- getkirby/cms (Packagist): affected from 3.9.0; fixed in 3.9.6\n- getkirby/cms (Packagist): affected from 3.9.0; fixed in 3.9.6\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-2023-38488/ (Markdown: https://insights.sbomify.com/CVE-2023-38488/index.md)","id":"CVE-2023-38488","markdown":"https://insights.sbomify.com/CVE-2023-38488/index.md","name":"CVE-2023-38488","record":{"aliases":["GHSA-x5mr-p6v4-wp93"],"analysis":{"component_type":"cms_plugin","fix_type":"patch","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Kirby CMS","requires_auth":"low_privilege","summary":"Authenticated users or visitors with write access can inject malicious data or code into Kirby content files via Unicode BOM manipulation in field separators.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kirby","vendor":"getkirby"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-140","name":"Improper Neutralization of Delimiters"}],"description":"Kirby is a content management system. A vulnerability in versions prior to 3.5.8.3, 3.6.6.3, 3.7.5.2, 3.8.4.1, and 3.9.6 affects all Kirby sites that might have potential attackers in the group of authenticated Panel users or that allow external visitors to update a Kirby content file (e.g. via a contact or comment form). Kirby sites are *not* affected if they don't allow write access for untrusted users or visitors.\n\nA field injection in a content storage implementation is a type of vulnerability that allows attackers with content write access to overwrite content fields that the site developer didn't intend to be modified. In a Kirby site this can be used to alter site content, break site behavior or inject malicious data or code. The exact security risk depends on the field type and usage.\n\nKirby stores content of the site, of pages, files and users in text files by default. The text files use Kirby's KirbyData format where each field is separated by newlines and a line with four dashes (`----`). When reading a KirbyData file, the affected code first removed the Unicode BOM sequence from the file contents and afterwards split the content into fields by the field separator.\n\nWhen writing to a KirbyData file, field separators in field data are escaped to prevent user input from interfering with the field structure. However this escaping could be tricked by including a Unicode BOM sequence in a field separator (e.g. `--\\xEF\\xBB\\xBF--`). When writing, this was not detected as a separator, but because the BOM was removed during reading, it could be abused by attackers to inject other field data into content files.\n\nBecause each field can only be defined once per content file, this vulnerability only affects fields in the content file that were defined above the vulnerable user-writable field or not at all. Fields that are defined below the vulnerable field override the injected field content and were therefore already protected.\n\nThe problem has been patched in Kirby 3.5.8.3, 3.6.6.3, 3.7.5.2, 3.8.4.1, and 3.9.6. In all of the mentioned releases, the maintainers have fixed the affected code to only remove the Unicode BOM sequence at the beginning of the file. This fixes this vulnerability both for newly written as well as for existing content files.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Kirby vulnerable to field injection in the KirbyData text storage handler","id":"CVE-2023-38488","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":10,"n_references":7,"next":{"headline":"Kirby vulnerable to Insufficient Session Expiration after a password change","id":"CVE-2023-38489"},"packages":[{"ecosystem":"Packagist","fixed":["3.5.8.3"],"introduced":["0"],"last_affected":[],"package":"getkirby/cms","purl":null,"source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.5.8.3"],"introduced":["0"],"last_affected":[],"package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.6.6.3"],"introduced":["3.6.0"],"last_affected":[],"package":"getkirby/cms","purl":null,"source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.6.6.3"],"introduced":["3.6.0"],"last_affected":[],"package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.7.5.2"],"introduced":["3.7.0"],"last_affected":[],"package":"getkirby/cms","purl":null,"source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.7.5.2"],"introduced":["3.7.0"],"last_affected":[],"package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.8.4.1"],"introduced":["3.8.0"],"last_affected":[],"package":"getkirby/cms","purl":null,"source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.8.4.1"],"introduced":["3.8.0"],"last_affected":[],"package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.9.6"],"introduced":["3.9.0"],"last_affected":[],"package":"getkirby/cms","purl":null,"source":"GHSA-x5mr-p6v4-wp93"},{"ecosystem":"Packagist","fixed":["3.9.6"],"introduced":["3.9.0"],"last_affected":[],"package":"getkirby/cms","purl":"pkg:composer/getkirby/cms","source":"GHSA-x5mr-p6v4-wp93"}],"prev":{"headline":"HedgeDoc API allows to hide existing notes","id":"CVE-2023-38487"},"products":["kirby"],"published":"2023-07-27","related":[{"cvss_score":8.8,"headline":"Kirby vulnerable to unrestricted file upload of user avatar images","id":"CVE-2024-26483","kev_date_added":null,"published":"2024-02-22"},{"cvss_score":8.1,"headline":"Insufficient permission checks in the language settings in Kirby CMS","id":"CVE-2024-41964","kev_date_added":null,"published":"2024-08-29"},{"cvss_score":7.6,"headline":"Kirby has Server-Side Template Injection (SSTI) via double template resolution in option rendering","id":"CVE-2026-34587","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":7.6,"headline":"Cross-site scripting (XSS) from unsanitized uploaded SVG files","id":"CVE-2021-29460","kev_date_added":null,"published":"2021-04-27"},{"cvss_score":7.3,"headline":"Kirby vulnerable to Insufficient Session Expiration after a password change","id":"CVE-2023-38489","kev_date_added":null,"published":"2023-07-27"},{"cvss_score":7.3,"headline":"Cross-site scripting (XSS) from writer field content in the site frontend","id":"CVE-2021-41252","kev_date_added":null,"published":"2021-11-16"},{"cvss_score":7.3,"headline":"Cross-site scripting (XSS) from image block content in the site frontend","id":"CVE-2021-41258","kev_date_added":null,"published":"2021-11-16"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-17","vendors":["getkirby"]},"summary":"Authenticated users or visitors with write access can inject malicious data or code into Kirby content files via Unicode BOM manipulation in field separators.","url":"https://insights.sbomify.com/CVE-2023-38488/"}