Repository navigation
Security fix: CVE-2025-21521 - #17046
Conversation
📝 WalkthroughWalkthroughMySQL image versions are updated from 8.0.39 to 8.0.40 in Docker Compose and Helm configuration. ChangesMySQL image update
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (2)
docker/docker-compose-base.ymlhelm/values.yaml
| mysql: | ||
| # mysql:5.7 linux/arm64 image is unavailable. | ||
| image: mysql:8.0.39 | ||
| image: mysql:8.0.40 |
There was a problem hiding this comment.
🔒 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:
- 1: https://linux.oracle.com/cve/CVE-2025-21521.html
- 2: https://osv.dev/vulnerability/CVE-2025-21521
- 3: https://docs.oracle.com/cd/E17952_01/mysql-8.0-relnotes-en/news-8-0-40.html
- 4: https://www.oracle.com/security-alerts/cpujan2025.html
- 5: https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-46.html
- 6: https://docs.oracle.com/cd/E17952_01/mysql-8.0-relnotes-en/
- 7: https://blogs.oracle.com/security/january-2025-cpu-released
🏁 Script executed:
#!/bin/bash
set -euo pipefail
git status --short
printf '\n'
git grep -n "mysql:8.0.40\|8.0.40" -- docker helm || trueRepository: 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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
No description provided.