{"items":[{"id":"NVI-00005223","kind":"vulnerability","title":"CI4MS Vulnerable to .env CRLF Injection via Unvalidated `host` Parameter in Install Controller","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-vfhx-5459-qhqh","CVE-2026-39394"],"plain_summary":"OSV carries this publisher advisory for ci4-cms-erp/ci4ms. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 0.31.4.0 for ci4-cms-erp/ci4ms. Confirm the publisher’s latest guidance.","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-7481dba71069c6a89253c69a70117009"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-24T21:10:00.143Z","value":"8.1 HIGH (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-8ac25caaae51a799e6ce88fbfbc98a3f"},{"kind":"CVSS","as_of":"2026-07-24T21:10:00.143Z","value":"9.8 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-8ac25caaae51a799e6ce88fbfbc98a3f"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.516%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.43974. Missing scores are unknown.","source_id":"sr-7481dba71069c6a89253c69a70117009"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-86f99ba0e4bb3cc516afd618635ecfdd","url":"https://github.com/advisories/GHSA-vfhx-5459-qhqh","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-vfhx-5459-qhqh","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:41.374Z"},{"id":"sr-8ac25caaae51a799e6ce88fbfbc98a3f","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39394","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-39394","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:23:52.242Z"},{"id":"sr-7481dba71069c6a89253c69a70117009","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-39394","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.378Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"technology":"ci4-cms-erp/ci4ms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `Install::index()` controller reads the `host` POST parameter without any validation and passes it directly into `updateEnvSettings()`, which writes it into the `.env` file via `preg_replace()`. Because newline characters in the value are not stripped, an attacker can inject arbitrary configuration directives into the `.env` file. The install routes have CSRF protection explicitly disabled, and the `InstallFilter` can be bypassed when `cache('settings')` is empty (cache expiry or fresh deployment).\n\n## Details\n\nIn `modules/Install/Controllers/Install.php`, the `$valData` array (lines 13-27) defines validation rules for all POST parameters **except** `host`. The `host` value is read at line 35:\n\n```php\n// line 32-41\n$updates = [\n    'CI_ENVIRONMENT' => 'development',\n    'app.baseURL' => '\\'' . $this->request->getPost('baseUrl') . '\\'',\n    'database.default.hostname' => $this->request->getPost('host'),  // NO VALIDATION\n    'database.default.database' => $this->request->getPost('dbname'),\n    // ...\n];\n```\n\nThis value is passed to `updateEnvSettings()` (lines 89-101), which uses `preg_replace` with the raw value as the replacement string:\n\n```php\n// line 94-98\nforea","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 0.31.4.0"]}],"null_published_at":"2026-11-03T17:49:21.364Z","source_updated_at":"2026-04-08T19:41:25.158Z","source_disclosed_at":"2026-04-08T19:16:12.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:42:41.374Z"},{"id":"NVI-00005223","kind":"vulnerability","title":"CI4MS Vulnerable to .env CRLF Injection via Unvalidated `host` Parameter in Install Controller","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-vfhx-5459-qhqh","CVE-2026-39394"],"plain_summary":"OSV carries this publisher advisory for ci4-cms-erp/ci4ms. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 0.31.4.0 for ci4-cms-erp/ci4ms. Confirm the publisher’s latest guidance.","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-7481dba71069c6a89253c69a70117009"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.516%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.43974. Missing scores are unknown.","source_id":"sr-7481dba71069c6a89253c69a70117009"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-86f99ba0e4bb3cc516afd618635ecfdd","url":"https://github.com/advisories/GHSA-vfhx-5459-qhqh","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-vfhx-5459-qhqh","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:41.374Z"},{"id":"sr-7481dba71069c6a89253c69a70117009","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-39394","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.378Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"technology":"ci4-cms-erp/ci4ms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `Install::index()` controller reads the `host` POST parameter without any validation and passes it directly into `updateEnvSettings()`, which writes it into the `.env` file via `preg_replace()`. Because newline characters in the value are not stripped, an attacker can inject arbitrary configuration directives into the `.env` file. The install routes have CSRF protection explicitly disabled, and the `InstallFilter` can be bypassed when `cache('settings')` is empty (cache expiry or fresh deployment).\n\n## Details\n\nIn `modules/Install/Controllers/Install.php`, the `$valData` array (lines 13-27) defines validation rules for all POST parameters **except** `host`. The `host` value is read at line 35:\n\n```php\n// line 32-41\n$updates = [\n    'CI_ENVIRONMENT' => 'development',\n    'app.baseURL' => '\\'' . $this->request->getPost('baseUrl') . '\\'',\n    'database.default.hostname' => $this->request->getPost('host'),  // NO VALIDATION\n    'database.default.database' => $this->request->getPost('dbname'),\n    // ...\n];\n```\n\nThis value is passed to `updateEnvSettings()` (lines 89-101), which uses `preg_replace` with the raw value as the replacement string:\n\n```php\n// line 94-98\nforea","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 0.31.4.0"]}],"null_published_at":"2026-11-01T19:14:01.598Z","source_updated_at":"2026-04-08T19:41:25.158Z","source_disclosed_at":"2026-04-08T19:16:12.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:42:41.374Z"},{"id":"NVI-00005223","kind":"vulnerability","title":"CI4MS Vulnerable to .env CRLF Injection via Unvalidated `host` Parameter in Install Controller","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-vfhx-5459-qhqh","CVE-2026-39394"],"plain_summary":"OSV carries this publisher advisory for ci4-cms-erp/ci4ms. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 0.31.4.0 for ci4-cms-erp/ci4ms. Confirm the publisher’s latest guidance.","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-86f99ba0e4bb3cc516afd618635ecfdd","url":"https://github.com/advisories/GHSA-vfhx-5459-qhqh","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-vfhx-5459-qhqh","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:41.374Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-86f99ba0e4bb3cc516afd618635ecfdd"],"technology":"ci4-cms-erp/ci4ms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `Install::index()` controller reads the `host` POST parameter without any validation and passes it directly into `updateEnvSettings()`, which writes it into the `.env` file via `preg_replace()`. Because newline characters in the value are not stripped, an attacker can inject arbitrary configuration directives into the `.env` file. The install routes have CSRF protection explicitly disabled, and the `InstallFilter` can be bypassed when `cache('settings')` is empty (cache expiry or fresh deployment).\n\n## Details\n\nIn `modules/Install/Controllers/Install.php`, the `$valData` array (lines 13-27) defines validation rules for all POST parameters **except** `host`. The `host` value is read at line 35:\n\n```php\n// line 32-41\n$updates = [\n    'CI_ENVIRONMENT' => 'development',\n    'app.baseURL' => '\\'' . $this->request->getPost('baseUrl') . '\\'',\n    'database.default.hostname' => $this->request->getPost('host'),  // NO VALIDATION\n    'database.default.database' => $this->request->getPost('dbname'),\n    // ...\n];\n```\n\nThis value is passed to `updateEnvSettings()` (lines 89-101), which uses `preg_replace` with the raw value as the replacement string:\n\n```php\n// line 94-98\nforea","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 0.31.4.0"]}],"null_published_at":"2026-10-31T22:13:01.456Z","source_updated_at":"2026-04-08T19:41:25.158Z","source_disclosed_at":"2026-04-08T19:16:12.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:41.374Z"}],"next_cursor":null,"snapshot_revision":"42594"}