CVE-2013-1821 — jruby
CVE-2013-1821 is a Improper Input Validation vulnerability in org.jruby:jruby. A fix is available for org.jruby:jruby — see the affected versions and patch details below.
Ruby vulnerable to denial of service
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.jruby:jrubyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
When reading text nodes from an XML document, the REXML parser can be coerced in to allocating extremely large string objects which can consume all of the memory on a machine, causing a denial of service.
Jruby resolves this bug in version 1.7.3 as noted in https://www.jruby.org/2013/02/21/jruby-1-7-3.html
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jruby:jruby | all versions | 1.7.3org.jruby:jruby:1.7.3 |
Affected Products
rubyruby-langDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jruby:jruby, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jruby:jruby to 1.7.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-1821 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Fuse ESB Enterprise 7.1.0 | see advisory | RHSA-2013:1028 |
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-29.el5_9 | RHSA-2013:0611 |
| Red Hat Enterprise Linux 6 | ruby-0:1.8.7.352-10.el6_4 | RHSA-2013:0612 |
| Red Hat JBoss Fuse 6.0 | see advisory | RHSA-2013:1185 |
| Red Hat JBoss SOA Platform 5.3 | see advisory | RHSA-2013:1147 |
| Red Hat Hardened Images | ruby3-3-main-3.3.10-23.1.hum1 | RHSA-2026:7305 |
| Red Hat Hardened Images | ruby3-4-main-3.4.8-31.1.hum1 | RHSA-2026:7307 |
| Red Hat Hardened Images | ruby4-0-main-4.0.0-33.3.hum1 | RHSA-2026:8838 |
Frequently Asked Questions
Is CVE-2013-1821 in your dependencies?
Find it across Maven, including transitive dependencies.