{"id":"CVE-2018-16975","aliases":["EUVD-2022-5689","GHSA-x2w2-qgv6-8xrm"],"status":"published","title":"Elefant CMS PHP Code Execution Vulnerability","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with \u003c?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03727,"percentile":0.89885,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2018-09-12T21:00:00Z","modified":"2026-10-20T10:50:04Z","fixes":[{"ecosystem":"Packagist","package":"elefant/cms","fixed_in":["2.0.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"elefant/cms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7"}]}]},{"source":"osv","ecosystem":"Packagist","package":"elefant/cms","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7"}]}]}],"products":[{"vendor":"elefantcms","product":"elefant"}],"references":[{"url":"https://github.com/jbroadway/elefant/issues/286","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/jbroadway/elefant/commit/0795ab57c7ffa53ff4af57e229f6d9680fa54a21","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/jbroadway/elefant/releases/tag/elefant_2_0_7_stable","tags":["x_refsource_MISC","x_transferred","Release Notes","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-16975","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-x2w2-qgv6-8xrm"},{"url":"https://github.com/jbroadway/elefant","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-16975","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with \u003c?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.","status":"published","published":"2018-09-12T21:00:00Z","modified":"2024-08-05T10:39:58.969Z","updated_at":"2026-11-02T14:35:11.426178Z"}],"euvd":[{"id":"EUVD-2022-5689","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with \u003c?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.","status":"published","published":"2018-09-12T21:00:00Z","modified":"2024-08-05T10:39:58Z","updated_at":"2026-11-03T02:39:39.763591Z"}],"ghsa":[{"id":"GHSA-x2w2-qgv6-8xrm","title":"Elefant CMS PHP Code Execution Vulnerability","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in `/designer/add/stylesheet.php` by using a `.php` extension in the New Stylesheet Name field in conjunction with `\u003c?php` content, because of insufficient input validation in `apps/designer/handlers/csspreview.php`.","status":"published","published":"2022-05-13T01:19:19Z","modified":"2024-04-23T22:56:58Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:44.867253Z"}],"nvd":[{"id":"CVE-2018-16975","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with \u003c?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.","status":"published","published":"2018-09-12T21:29:00.863Z","modified":"2026-06-17T01:45:09.407Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:04:38.672108Z"}],"osv":[{"id":"CVE-2018-16975","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in /designer/add/stylesheet.php by using a .php extension in the New Stylesheet Name field in conjunction with \u003c?php content, because of insufficient input validation in apps/designer/handlers/csspreview.php.","status":"published","published":"2018-09-12T21:29:00.863Z","modified":"2026-10-20T10:50:04.222546844Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:08.533609Z"},{"id":"GHSA-x2w2-qgv6-8xrm","title":"Elefant CMS PHP Code Execution Vulnerability","description":"An issue was discovered in Elefant CMS before 2.0.7. There is a PHP Code Execution Vulnerability in `/designer/add/stylesheet.php` by using a `.php` extension in the New Stylesheet Name field in conjunction with `\u003c?php` content, because of insufficient input validation in `apps/designer/handlers/csspreview.php`.","status":"published","published":"2022-05-13T01:19:19Z","modified":"2024-04-23T23:11:43.195805Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:59.484835Z"}]}}
