Skip to content

Add CVE-2024-43398: DoS vulnerability in REXML #3348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions en/news/_posts/2024-08-22-dos-rexml-cve-2024-43398.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: news_post
title: "CVE-2024-43398: DoS vulnerability in REXML"
author: "kou"
translator:
date: 2024-08-22 03:00:00 +0000
tags: security
lang: en
---

There is a DoS vulnerability in REXML gem. This vulnerability has been assigned the CVE identifier [CVE-2024-43398](https://www.cve.org/CVERecord?id=CVE-2024-43398). We strongly recommend upgrading the REXML gem.

## Details

When parsing an XML that has many deep elements that have same local name attributes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing several previous articles, I think this would be appropriate. How do you think?

Suggested change
When parsing an XML that has many deep elements that have same local name attributes.
When parsing an XML that has many deep elements that have same local name attributes, REXML gem may take long time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Could you open a PR for this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


It's only affected with the tree parser API. If you're using `REXML::Document.new` to parse an XML, you may be affected.

Please update REXML gem to version 3.3.6 or later.

## Affected versions

* REXML gem 3.3.5 or prior

## Credits

Thanks to [l33thaxor](https://hackerone.com/l33thaxor) for discovering this issue.

## History

* Originally published at 2024-08-22 03:00:00 (UTC)