Skip to main content

RuoYi CVE-2025-7907

LOW
Use of Default Credentials (CWE-1392)
2025-07-20 cna@vuldb.com
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authenticated access to RuoYi
  2. Delivery
    Locate Druid endpoint (port 8080/druid)
  3. Exploit
    Connect using default credentials from application-druid.yml
  4. Execution
    Access database metadata and query logs
  5. Impact
    Extract sensitive information from database schema and execution patterns

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Default credential prevention
Exploitation Conditions

Authentication to the RuoYi application is required (CVSS PR:L). The attacker must either: (1) have a valid user account in the RuoYi application; (2) have access to the application configuration files directly (e.g., via file disclosure or compromised deployment pipeline); or (3) have network access to the Druid web interface if it is exposed without additional authentication. Default Druid credentials must remain unchanged in application-druid.yml - systems that have customized these credentials during installation are not vulnerable. The Druid monitoring interface must be accessible (not firewalled or reverse-proxied) from the attacker's network position.

Impact

This vulnerability presents MINIMAL real-world risk despite public exploit availability. The CVSS 4.0 vector shows authentication is required (PR:L), limiting scope to users with valid application accounts. EPSS percentile of 15% (0.05% likelihood) is at the very low end of the probability spectrum, indicating security researchers and vendors do not expect widespread active exploitation. The impact is confidentiality only (VC:L) with no integrity or availability impact. However, the confluence of three factors merits attention: (1) public disclosure with POC availability lowers the barrier for opportunistic attackers; (2) information disclosure from default credentials can enable lateral movement or privilege escalation if combined with other weaknesses; (3) developers using RuoYi in production may not realize configuration files contain exposed secrets. The low EPSS despite POC availability suggests this is a 'researcher-disclosed' risk rather than an actively exploited production vulnerability. Organizations using RuoYi should prioritize this below CVEs with EPSS >10% or unauthenticated attack vectors, but inclusion in security scanning pipelines is appropriate.

Exploit ScenarioDerived

An authenticated user (insider or account obtained via phishing/credential stuffing) logs into a RuoYi application instance. They access the bundled Druid monitoring interface using the hardcoded default database credentials stored in application-druid.yml, gaining visibility into database schema, queries, and performance metrics that may reveal sensitive business logic or data patterns. In a multi-tenant environment, this could escalate to cross-tenant information disclosure.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 29, 2026

RuoYi up to version 4.8.1 uses hardcoded default credentials in the Druid database configuration file (application-druid.yml), allowing authenticated remote attackers to gain low-impact information disclosure. The vulnerability requires prior authentication (PR:L per CVSS 4.0) and has been publicly disclosed with exploit details available, though EPSS scoring (0.05%) and the low CVSS impact (VC:L only) suggest limited real-world exploitation risk despite the proof-of-concept availability.

RemediationAI

Update RuoYi to a patched version released after the public disclosure (version not independently confirmed from provided data; check yangzongzhuan/RuoYi repository releases). Immediate compensating controls: (1) Change all default Druid database credentials in application-druid.yml to strong, unique values before deployment; (2) Restrict access to the Druid web monitoring interface (typically port 8080/druid/index.html) via firewall rules or reverse proxy authentication to authorized administrators only; (3) Ensure application-druid.yml is excluded from version control repositories (add to .gitignore) and is deployed via secure configuration management (e.g., environment variables or secrets vaults, not hardcoded files); (4) Audit production environment logs for unauthorized access to Druid endpoints using default or weak credentials. See https://github.com/yangzongzhuan/RuoYi/issues/297 for detailed remediation discussion.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

RuoYi is a Java-based rapid development platform that uses Apache Druid for database connection pooling and monitoring. The vulnerability resides in the application-druid.yml configuration file, which is part of the ruoyi-admin component. CWE-1392 (Use of Default Credentials) indicates that sensitive database credentials are hardcoded or left at their factory defaults in the configuration, exposing them to any authenticated user who can access the application or its configuration files. The Druid component exposes a web monitoring interface that may leak additional sensitive information when accessed with these default credentials.

Know when Ruoyi gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability was found in yangzongzhuan RuoYi up to 4.8.1. It has been classified as problematic. Affected is an unknown function of the file ruoyi-admin/src/main/resources/application-druid.yml of the component Druid. The manipulation leads to use of default credentials. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:ruoyi:ruoyi:*:*:*:*:*:*:*:*

More in Ruoyi

View all
CVE-2025-28412 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the /editSave method in SysNoticeControlle

CVE-2025-28410 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the cancelAuthUserAll method does not prop

CVE-2025-28406 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobLogId parameter. Rated critical sev

CVE-2025-28405 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the changeStatus method. Rated critical se

CVE-2025-28402 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobId parameter. Rated critical severi

CVE-2023-49371 CRITICAL POC
9.8 Dec 01

RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit. Rated critical severity

CVE-2022-4566 CRITICAL POC
9.8 Dec 16

A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. Rated critical severity (CVS

CVE-2025-70985 CRITICAL POC
9.1 Jan 23

RuoYi v4.8.2 has an access control flaw in the update function allowing unauthorized attackers to modify arbitrary data

CVE-2025-28409 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the add method of the /add/{parentId} endp

CVE-2025-28407 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the edit method of the /edit/{dictId} endp

CVE-2025-56396 HIGH POC
8.8 Nov 26

An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department havi

CVE-2022-23868 HIGH POC
7.8 Mar 30

RuoYi v4.7.2 contains a CSV injection vulnerability through ruoyi-admin when a victim opens .xlsx log file. Rated high s

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy