[Security] Bump rexml from 3.3.7 to 3.3.9
Bumps rexml from 3.3.7 to 3.3.9. This update includes a security fix.
Vulnerabilities fixed
REXML ReDoS vulnerability
Impact
The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between
&#
andx...;
in a hex numeric character reference (&#x...;
).This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby. Note that Ruby 3.1 will reach EOL on 2025-03.
Patches
The REXML gem 3.3.9 or later include the patch to fix the vulnerability.
Workarounds
Use Ruby 3.2 or later instead of Ruby 3.1.
References
- https://www.ruby-lang.org/en/news/2024/10/28/redos-rexml-cve-2024-49761/: An announce on www.ruby-lang.org
Patched versions: 3.3.9
Affected versions: < 3.3.9
Release notes
Sourced from rexml's releases.
REXML 3.3.9 - 2024-10-24
Improvements
- Improved performance.
- GH-210
- Patch by NAITOH Jun.
Fixes
Fixed a parse bug for text only invalid XML.
- GH-215
- Patch by NAITOH Jun.
Fixed a parse bug that
�x...;
is accepted as a character reference.Thanks
- NAITOH Jun
REXML 3.3.8 - 2024-09-29
Improvements
- SAX2: Improve parse performance.
- GH-207
- Patch by NAITOH Jun.
Fixes
- Fixed a bug that unexpected attribute namespace conflict error for the predefined "xml" namespace is reported.
- GH-208
- Patch by KITAITI Makoto
Thanks
NAITOH Jun
KITAITI Makoto
Changelog
Sourced from rexml's changelog.
3.3.9 - 2024-10-24 {#version-3-3-9}
Improvements
- Improved performance.
- GH-210
- Patch by NAITOH Jun.
Fixes
Fixed a parse bug for text only invalid XML.
- GH-215
- Patch by NAITOH Jun.
Fixed a parse bug that
�x...;
is accepted as a character reference.Thanks
- NAITOH Jun
3.3.8 - 2024-09-29 {#version-3-3-8}
Improvements
- SAX2: Improve parse performance.
- GH-207
- Patch by NAITOH Jun.
Fixes
- Fixed a bug that unexpected attribute namespace conflict error for the predefined "xml" namespace is reported.
- GH-208
- Patch by KITAITI Makoto
Thanks
NAITOH Jun
KITAITI Makoto
Commits
-
38eaa86
Add 3.3.9 entry -
ce59f2e
parser: fix a bug that �x...; is accepted as a character reference -
a09646d
test: fix indent -
cf0fb9c
FixIOSource#readline
for@pending_buffer
(#215) -
1d0c362
OptimizeIOSource#read_until
method (#210) -
622011f
Bump version -
036d508
test: avoid using needless non ASCII characters -
4197054
Add 3.3.8 entry -
78f8712
Fix handling with "xml:" prefixed namespace (#208) -
2e1cd64
Optimize SAX2Parser#get_namespace (#207) - Additional commits viewable in compare view