Skip to content

Security fix: CVE-2025-21521 - #17046

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:security/fix-CVE-2025-21521
Jul 17, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
wangq8:security/fix-CVE-2025-21521

Conversation

@wangq8

@wangq8 wangq8 commented Jul 17, 2026 •

Copy link
Copy Markdown
Collaborator

No description provided.

@wangq8 wangq8 added the ci Continue Integration label Jul 17, 2026
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

MySQL image versions are updated from 8.0.39 to 8.0.40 in Docker Compose and Helm configuration.

Changes

MySQL image update

Layer / File(s) Summary
Update MySQL image tags
docker/docker-compose-base.yml, helm/values.yaml
MySQL image references are updated from version 8.0.39 to 8.0.40.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: jinhai-cn

Poem

I’m a bunny with a shiny new tag,
MySQL hops forward in its Docker bag.
Eight-oh-forty, neat and bright,
Compose and Helm now match just right. 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No pull request description was provided, so the required Summary section and context from the template are missing. Add a Summary section describing the CVE fix, why the MySQL image was bumped, and any relevant background for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the security-fix focus and matches the MySQL version bump for the cited CVE.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docker/docker-compose-base.yml`:
- Line 188: Update the MySQL image pins in docker/docker-compose-base.yml at
lines 188-188 and helm/values.yaml at lines 213-213 from 8.0.40 to the same
supported, non-EoL MySQL release.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5d8aebc1-64a2-487d-9486-18c2d6dce7f5

📥 Commits

Reviewing files that changed from the base of the PR and between 344477f and 271997a.

📒 Files selected for processing (2)
  • docker/docker-compose-base.yml
  • helm/values.yaml

mysql:
# mysql:5.7 linux/arm64 image is unavailable.
image: mysql:8.0.39
image: mysql:8.0.40

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== docker/docker-compose-base.yml (around line 188) ==\n'
sed -n '175,200p' docker/docker-compose-base.yml | cat -n

printf '\n== helm/values.yaml (around line 213) ==\n'
sed -n '200,225p' helm/values.yaml | cat -n

printf '\n== MySQL version references in repo ==\n'
rg -n --hidden --glob '!**/.git/**' 'mysql[:.]8\.0\.40|8\.0\.40|mysql.image.tag|mysql:8\.0' docker helm . | sed -n '1,200p'

Repository: infiniflow/ragflow

Length of output: 2462


🌐 Web query:

Oracle MySQL Server security advisories 8.0.40 8.0.46 CVE-2025-21521

💡 Result:

CVE-2025-21521 is a security vulnerability in the Oracle MySQL Server product, specifically within the Thread Pooling component [1][2]. It allows an unauthenticated attacker with network access via multiple protocols to compromise the server [1][2]. A successful attack can result in an unauthorized ability to cause a hang or a frequently repeatable crash (complete denial of service) [1][2]. Key details regarding the vulnerability and affected versions: - CVSS Base Score: 7.5 (High) [1][2]. - Attack Vector: Network [1][2]. - Impact: Availability (High) [1][2]. - Affected Versions: MySQL Server versions 8.0.39 and prior, 8.4.2 and prior, and 9.0.1 and prior [1][2]. Regarding the specific MySQL versions mentioned: - MySQL 8.0.40 was released on October 15, 2024 [3], and is noted in the January 2025 Critical Patch Update (CPU) advisory as a version affected by various vulnerabilities, though it is not listed as the specific cutoff for CVE-2025-21521 [4]. - MySQL 8.0.46 is a later release in the 8.0 series, released on April 21, 2026 [5]. As of April 2026, MySQL 8.0 has reached End of Life (EoL), and users are encouraged to upgrade to newer supported releases such as MySQL 8.4 LTS [6][5]. For the most accurate and up-to-date security information, users should consult the official Oracle Critical Patch Update advisories [4][7] and the MySQL Release Notes [6][5].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

git status --short
printf '\n'
git grep -n "mysql:8.0.40\|8.0.40" -- docker helm || true

Repository: infiniflow/ragflow

Length of output: 253


Bump both MySQL pins to a supported release

docker/docker-compose-base.yml:188 and helm/values.yaml:213 both pin MySQL to 8.0.40; move them to the same supported release instead of staying on an EoL 8.0.x tag.

📍 Affects 2 files
  • docker/docker-compose-base.yml#L188-L188 (this comment)
  • helm/values.yaml#L213-L213
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docker/docker-compose-base.yml` at line 188, Update the MySQL image pins in
docker/docker-compose-base.yml at lines 188-188 and helm/values.yaml at lines
213-213 from 8.0.40 to the same supported, non-EoL MySQL release.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (7c698f8) to head (271997a).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17046      +/-   ##
==========================================
- Coverage   94.56%   93.16%   -1.40%     
==========================================
  Files          10       10              
  Lines         717      717              
  Branches      118      118              
==========================================
- Hits          678      668      -10     
- Misses         25       29       +4     
- Partials       14       20       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wangq8
wangq8 merged commit c420de0 into infiniflow:main Jul 17, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant