{"answers":{"affected":"4 open source packages ship an affected version, including ghost.","exploited":"There is no known exploitation of GHSA-7v28-g2pq-ggg8 in the wild and no public exploit code.","fix":"Upgrade ghost to a fixed version for your release line: 4.48.2 or 5.2.3.","what":"GHSA-7v28-g2pq-ggg8 is a command injection vulnerability in ghost, published on 17 Jun 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-7v28-g2pq-ggg8 and fix it if it is affected.\n\nWhat it is: GHSA-7v28-g2pq-ggg8 is a command injection vulnerability in ghost, published on 17 Jun 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-7v28-g2pq-ggg8 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ghost (npm): affected all versions; fixed in 4.48.2\n- ghost (npm): affected all versions; fixed in 4.48.2\n- ghost (npm): affected from 5.0.0; fixed in 5.2.3\n- ghost (npm): affected from 5.0.0; fixed in 5.2.3\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/GHSA-7v28-g2pq-ggg8/ (Markdown: https://insights.sbomify.com/GHSA-7v28-g2pq-ggg8/index.md)","id":"GHSA-7v28-g2pq-ggg8","markdown":"https://insights.sbomify.com/GHSA-7v28-g2pq-ggg8/index.md","name":"GHSA-7v28-g2pq-ggg8","record":{"aliases":[],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ghost blog platform","requires_auth":"high_privilege","summary":"Authenticated attackers can execute arbitrary commands via locale settings in Ghost, requiring an upgrade to patch.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nA [vulnerability](https://www.cve.org/CVERecord?id=CVE-2022-24785) in an upstream library means an authenticated attacker can abuse locale input to execute arbitrary commands from a file that has previously been uploaded using the file upload functionality in the post editor.\n\n### Patches\n\nFixed in 5.2.3, all 5.x sites should update as soon as possible.\nFixed in 4.48.2, all 4.x sites should update as soon as possible.\n\n### Workarounds\n\nPatched versions of Ghost add validation to the locale input to prevent execution of arbitrary files. Updating Ghost is the quickest complete solution.\n\nAs a workaround, if for any reason you cannot update your Ghost instance, you can block the `POST /ghost/api/admin/settings/` endpoint, which will also disable updating settings for your site.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Email us at [security@ghost.org](mailto:security@ghost.org)\n\n### Credits\n\n* devx00 - https://twitter.com/devx00","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Ghost vulnerable to remote code execution in locale setting change","id":"GHSA-7v28-g2pq-ggg8","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["4.48.2"],"introduced":["0"],"last_affected":[],"package":"ghost","purl":null,"source":"GHSA-7v28-g2pq-ggg8"},{"ecosystem":"npm","fixed":["4.48.2"],"introduced":["0"],"last_affected":[],"package":"ghost","purl":"pkg:npm/ghost","source":"GHSA-7v28-g2pq-ggg8"},{"ecosystem":"npm","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"ghost","purl":null,"source":"GHSA-7v28-g2pq-ggg8"},{"ecosystem":"npm","fixed":["5.2.3"],"introduced":["5.0.0"],"last_affected":[],"package":"ghost","purl":"pkg:npm/ghost","source":"GHSA-7v28-g2pq-ggg8"}],"products":null,"published":"2022-06-17","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Authenticated attackers can execute arbitrary commands via locale settings in Ghost, requiring an upgrade to patch.","url":"https://insights.sbomify.com/GHSA-7v28-g2pq-ggg8/"}