ox is vulnerable to Out-of-bounds Write
65
Medium Risk
Ox parses and serializes XML through a C extension that mishandles many untrusted-input conditions across its SAX parser, object-mode loader, dumper, builder, base64 decoder, and name cache. Crafted XML or object-mode documents trigger stack and heap buffer overflows, out-of-bounds reads and writes, use-after-free and double-free conditions, reads of uninitialized memory, and hash-flooding, and a document can force a default load into object mode. Before the fix these conditions let untrusted input corrupt process memory, disclose adjacent memory, crash the process, or instantiate unexpected objects. The fix adds bounds and size validation, element depth and nesting limits, safe allocation and free handling, per-process name-cache seeding, and stricter object-mode selection.
You are affected if you are using a version that falls within the vulnerable range and your application parses or serializes externally influenced or untrusted XML input with Ox.
ox is vulnerable to Out-of-bounds Write in versions 1.0.0 - 2.14.28.
Upgrade the ox library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant