CVE-2021-3518
Ruby vulnerability analysis and mitigation

Overview

A flaw was discovered in libxml2 in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by an application linked with libxml2 could trigger a use-after-free vulnerability. The vulnerability was discovered in April 2021 and assigned identifier CVE-2021-3518 (NVD, Debian).

Technical details

The vulnerability exists in the xmlXIncludeDoProcess() function in xinclude.c of libxml2. When processing specially crafted XML files, a use-after-free condition could be triggered. The issue was addressed with improved checks in version 2.9.11 (Red Hat Bugzilla).

Impact

A successful exploitation of this vulnerability could lead to arbitrary code execution, with potential impacts to confidentiality, integrity, and availability of the affected system (Debian).

Mitigation and workarounds

The vulnerability has been fixed in libxml2 version 2.9.11. Users should upgrade to this version or apply appropriate security patches provided by their vendors. Multiple vendors have released patches including Red Hat, Debian, Apple, and others (Red Hat, Debian).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management