[ZBX-27639] Host and event action script regex validation can be bypassed in certain situations, leading to potential command injection (CVE-2026-23920) Created: 2026 Mar 24  Updated: 2026 Apr 07  Resolved: 2026 Mar 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Defect (Security) Priority: Major
Reporter: Janis Nulle Assignee: Zabbix Support Team
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   
CVE ID CVE-2026-23920
CVSS score 7.7 (High)
CVSS vector CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Affected components Server, Proxy
Summary Host and event action script regex validation can be bypassed in certain situations, leading to potential command injection
Description Host and event action script input is validated with a regex (set by the administrator), but the validation runs in multiline mode. If ^ and $ anchors are used in user input validation, an injected newline lets authenticated users bypass the check and inject shell commands.
Known attack vectors Authenticated users with script execution permissions can bypass ^ and $ regex validation by injecting a newline character.
Affected and fix version/s Affected: 7.0.0 - 7.0.21 → Fixed: 7.0.22
Affected: 7.2.0 - 7.2.14 → Fixed: 7.2.15
Affected: 7.4.0 - 7.4.5 → Fixed: 7.4.6
Mitigation Update the affected components to their respective fixed versions.
Workarounds It is possible to use \A and \z anchors in the regex validation as a workaround.
Acknowledgements Zabbix wants to thank YoKo Kho (@YoKoAcc) from PT ITSEC Asia, Tbk for submitting this report on the HackerOne bug bounty platform.

Generated at Sat Jun 20 03:44:46 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.