Skip to content

fix(auto): limit regex length#7737

Merged
yongtang merged 1 commit into
coredns:masterfrom
thevilledev:fix/auto-regexp-oom
Dec 8, 2025
Merged

fix(auto): limit regex length#7737
yongtang merged 1 commit into
coredns:masterfrom
thevilledev:fix/auto-regexp-oom

Conversation

@thevilledev

Copy link
Copy Markdown
Collaborator

1. Why is this pull request needed and what does it do?

A very large regex for the auto plugin in the Corefile could cause CoreDNS to OOM. This change adds an artificial limit of 10k characters for the regex pattern.

2. Which issues (if any) are related?

Fixes OSS-Fuzz finding #466745384 (not publicly accessible).

3. Which documentation changes (if any) need to be made?

Added a note to plugin README.

4. Does this introduce a backward incompatible change or deprecation?

The limit is supposed to be abundantly high to cover any and all real use cases.

A very large regex for the auto plugin in the Corefile could cause
CoreDNS to OOM. This change adds an artificial limit of 10k characters
for the regex pattern. Fixes OSS-Fuzz finding #466745384.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
@yongtang yongtang merged commit e5cd796 into coredns:master Dec 8, 2025
11 checks 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.

2 participants