Skip to content

Add CVE-2025-24294: DoS in resolv gem#914

Merged
postmodern merged 4 commits into
rubysec:masterfrom
hudakh:resolv-vulnerability
Nov 7, 2025
Merged

Add CVE-2025-24294: DoS in resolv gem#914
postmodern merged 4 commits into
rubysec:masterfrom
hudakh:resolv-vulnerability

Conversation

@hudakh

@hudakh hudakh commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Description:
Adds an advisory for a denial-of-service vulnerability in the resolv library bundled with Ruby.

Details:
A vulnerability exists in resolv where an attacker can craft a malicious DNS packet with a highly compressed domain name.
During parsing, the name-decompression can consume excessive CPU resources, leading to a thread or application becoming unresponsive (DoS).
Announcement

Affected versions:

  • Ruby 3.2 series: resolv ≤ 0.2.2
  • Ruby 3.3 series: resolv = 0.3.0
  • Ruby 3.4 series: resolv ≤ 0.6.1

References:

@hudakh

hudakh commented Oct 28, 2025

Copy link
Copy Markdown
Contributor Author

@jasnow for your review

@postmodern postmodern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't appear to be in the format of ruby-advisory-db's YAML schema. Please see the examples and YAML schema documentation.

Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ruby-advisory-db omits the CVE- from the cve: field.

Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated

@postmodern postmodern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also will need to list the specific new ruby versions that were released, instead of the resolv gem versions.

Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
Comment thread rubies/ruby/CVE‑2025‑24294.yml Outdated
@hudakh

hudakh commented Oct 29, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @postmodern. All addressed now, apologies for using the wrong schema.

@hudakh hudakh requested a review from postmodern November 3, 2025 00:26

@postmodern postmodern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Linter failed because of the indentation on lines 20-24. Should be four spaces, not two.

@hudakh

hudakh commented Nov 4, 2025

Copy link
Copy Markdown
Contributor Author

Linter failed because of the indentation on lines 20-24. Should be four spaces, not two.

Just saw that and pushed a fix.

@hudakh hudakh requested a review from postmodern November 4, 2025 04:16
@postmodern postmodern merged commit 52a3cc0 into rubysec:master Nov 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants