Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112159 Overview
CVE-2026-112159 is an operating system command injection vulnerability affecting JumpServer versions up to and including 4.10.19. The flaw resides in the Template Rendering component, where the IP/HOST argument is passed into Ansible template processing without proper validation. An authenticated remote attacker can manipulate the asset address field to inject commands that execute on the JumpServer host.
The vendor has confirmed the issue and released a fix in version 5.0.0, with a backport planned for an upcoming v4 release. The patch commit fcf2904cdb884230e9676f50f37a44d09fa97040 introduces address validators to block template injection payloads. A public proof-of-concept has been disclosed.
Critical Impact
Authenticated attackers can inject OS commands through asset IP/HOST fields, leading to arbitrary command execution within the JumpServer context via Ansible template injection.
Affected Products
- JumpServer versions up to and including 4.10.19
- JumpServer Template Rendering component (Ansible template processing)
- Fixed in JumpServer v5.0.0
Discovery Timeline
- 2026-10-19 - CVE-2026-112159 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-112159
Vulnerability Analysis
JumpServer is an open-source bastion host and privileged access management platform. The vulnerable code path accepts asset address input through the host serializer and forwards it into Ansible playbook templates. Because Ansible processes Jinja2 expressions during template rendering, unsanitized input containing template syntax is evaluated server-side.
An attacker with permission to create or modify an asset supplies a crafted value in the IP or hostname field. When JumpServer later renders Ansible templates that reference the address, the embedded expression executes as a command on the control host. This maps to CWE-77: Improper Neutralization of Special Elements used in a Command.
Root Cause
The root cause is the absence of input validation on asset address fields before they reach Ansible template rendering. The patch introduces validate_asset_address and validate_ip_or_hostname validators in apps/assets/serializers/asset/common.py and apps/assets/serializers/asset/host.py to constrain input to legitimate IP addresses or hostnames.
Attack Vector
Exploitation requires network access to the JumpServer web interface and low-privilege authenticated credentials with asset management rights. The attacker submits a malicious IP/HOST value, then triggers an operation (such as asset gathering or playbook execution) that renders the Ansible template referencing that value.
# Patch excerpt: apps/assets/serializers/asset/common.py
from orgs.mixins.serializers import BulkOrgResourceModelSerializer
from ...const import Category, AllTypes
from ...models import Asset, Node, Platform, Protocol, Host, Device, Database, Cloud, Web, Custom
+from ...validators import validate_asset_address
__all__ = [
'AssetSerializer', 'AssetSimpleSerializer', 'MiniAssetSerializer',
# Patch excerpt: apps/assets/serializers/asset/host.py
from django.utils.translation import gettext_lazy as _
from assets.models import Host
+from assets.validators import validate_ip_or_hostname
from .common import AssetSerializer
from .info.gathered import HostGatheredInfoSerializer
Source: JumpServer Commit fcf2904
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-112159
Indicators of Compromise
- Asset records containing Jinja2 template syntax such as {{ or }} in IP/HOST fields.
- Unexpected child processes spawned by JumpServer worker containers running shell commands or network utilities.
- Outbound connections from JumpServer hosts to attacker-controlled infrastructure following asset creation or update events.
- Ansible task logs showing template rendering errors or anomalous command execution tied to asset addresses.
Detection Strategies
- Audit the JumpServer asset database for IP/HOST values that do not match standard IP or hostname patterns.
- Monitor JumpServer application logs for asset creation and modification events, correlating them against process execution on the host.
- Deploy endpoint telemetry on JumpServer servers to flag command execution originating from Ansible or Python worker processes.
Monitoring Recommendations
- Enable verbose Ansible logging on the JumpServer control node to capture rendered template content.
- Alert on administrative API calls to asset endpoints originating from low-privilege accounts.
- Baseline normal process trees for JumpServer services and alert on deviations such as shell interpreters or reconnaissance binaries.
How to Mitigate CVE-2026-112159
Immediate Actions Required
- Upgrade JumpServer to version 5.0.0 or later, where the patch commit fcf2904cdb884230e9676f50f37a44d09fa97040 is applied.
- Review existing asset records and remove or correct any entries containing template syntax or shell metacharacters.
- Restrict asset creation and modification permissions to trusted administrators until the upgrade is complete.
Patch Information
The vendor fix is included in JumpServer Release v5.0.0 and will be backported to an upcoming v4 release. Technical details are available in JumpServer Pull Request #17500 and documented in the VulDB CVE-2026-112159 entry.
Workarounds
- Place JumpServer behind a web application firewall configured to block requests containing Jinja2 template delimiters in asset fields.
- Enforce the principle of least privilege on JumpServer roles so that only vetted operators can create or edit assets.
- Isolate the JumpServer control host at the network layer to limit the blast radius of any command execution.
# Verify installed JumpServer version and upgrade
docker exec jms_core bash -c "cat /opt/jumpserver/apps/jumpserver/const.py | grep VERSION"
# Upgrade to v5.0.0 using the official installer
cd /opt/jumpserver-installer
./jmsctl.sh down
git checkout v5.0.0
./jmsctl.sh upgrade v5.0.0
./jmsctl.sh start
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

