CVE-2025-66307: Getgrav/grav Grav Admin Plugin Vulnerable To Vulnerability
MODERATECVE-2025-66307 is a MODERATE (CVSS 6.5) grav admin plugin vulnerable to vulnerability (CWE-204: Observable Response Discrepancy) affecting Getgrav/grav libraries in the Packagist ecosystem. The issue involves grav admin plugin vulnerable to user enumeration & email disclosure. Remediation is available by upgrading affected packages to version 1.8.0-beta.27.
CVE-2025-66307 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L).
How to Fix CVE-2025-66307
To remediate this vulnerability, upgrade all affected Getgrav/grav dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade getgrav/grav to 1.8.0-beta.27
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for getgrav/grav
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-66307, inspect your project dependencies for Getgrav/grav:
inspect dependencies for getgrav/grav
Analyze the terminal output to locate any version of Getgrav/grav in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.0-beta.27), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-204: Observable Response Discrepancy, where the product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere. In Getgrav/grav, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-66307 Affected Getgrav/grav Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
getgrav/grav
|
Packagist |
< 1.8.0-beta.27
|
1.8.0-beta.27
|
References
Frequently Asked Questions
What is CVE-2025-66307?
Which Getgrav/grav versions are affected?
What version fixes CVE-2025-66307?
Is getgrav/grav affected?
What is the CVSS score of CVE-2025-66307?
What CWE is associated with CVE-2025-66307?
How can I check Packagist dependencies for CVE-2025-66307?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q3qx-cp62-f6m7",
"modified" : "2025-12-02T00:38:24Z",
"published" : "2025-12-02T00:38:24Z",
"aliases" : [ "CVE-2025-66307" ],
"summary" : "Grav Admin Plugin vulnerable to User Enumeration & Email Disclosure",
"details" : "# Grav v1.7.49.5 / Admin v1.10.49.1 – User Enumeration & Email Disclosure\n\n### Summary\nA **user enumeration and email disclosure vulnerability** exists in Grav **v1.7.49.5** with Admin plugin **v1.10.49.1**. \nThe \"Forgot Password\" functionality at `/admin/forgot` leaks information about valid usernames and their associated email addresses through distinct server responses. \nThis allows an attacker to enumerate users and disclose sensitive email addresses, which can be leveraged for targeted attacks such as password spraying, phishing, or social engineering. \n\n### Details\n\nThe issue resides in the [`taskForgot()`](https://github.com/getgrav/grav-plugin-admin/blob/6d673fc7c4f6962756f93ae651371e81f7f20924/classes/plugin/Controllers/Login/LoginController.php#L349) function, which handles the forgot password workflow. \nRelevant vulnerable logic:\n\n```php\nif (null === $user || $user->state !== 'enabled' || !$to) {\n ...\n // Generic message for invalid/non-existing users\n $this->setMessage($this->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'));\n return $this->createRedirectResponse($current);\n}\n\nif ($rateLimiter->isRateLimited($username)) {\n ...\n $interval = $config->get('plugins.login.max_pw_resets_interval', 2);\n\n // Sensitive message for valid users\n $this->setMessage($this->translate('PLUGIN_LOGIN.FORGOT_CANNOT_RESET_IT_IS_BLOCKED', $to, $interval), 'error');\n\n return $this->createRedirectResponse($current);\n}\n```\n\nWhen an attacker submits the password reset form at `/admin/forgot` with an **invalid username**, the application responds with: \n\n```\nInstructions to reset your password have been sent to your email address\n```\n\nHowever, when a **valid username** is supplied, and the attacker repeatedly triggers password reset requests, the application responds with: \n\n```\nCannot reset password for <USER_EMAIL>, password reset functionality temporarily blocked, please try later (maximum 60 minutes)\n```\n\nThis discrepancy in responses enables: \n1. **User Enumeration** – Attackers can determine if a username exists in the system by analyzing the response. \n2. **User Email Disclosure** – The system discloses the actual email address associated with the account (e.g., `admin@localhost.test`). \n\nThis violates best practices for authentication flows, where responses should remain generic to avoid leaking sensitive information.\n\n### PoC\n1. Navigate to the **Forgot Password** page: `https://<target>/admin/forgot`\n1. Submit a reset request with a random/invalid username (e.g., `invalid_user`): \n\n- Response: \n ```\n Instructions to reset your password have been sent to your email address\n ```\n3. Submit a reset request with a valid username (e.g., `admin`). \n4. Repeatedly request a reset for the same username until the lockout mechanism triggers. \n- Response: \n ```\n Cannot reset password for admin@localhost.test, password reset functionality temporarily blocked, please try later (maximum 60 minutes)\n ```\n5. Observe the leaked **email address** of the admin account in the error message. \n\n### Impact\n- **Severity:** Medium \n- **Type:** Information Disclosure / User Enumeration \n- **Who is Impacted:** All Grav sites using Admin plugin **v1.10.49.1** with password reset enabled. \n- **Risks:** \n - Allows attackers to enumerate valid usernames. \n - Exposes email addresses of admin accounts, which can be used in: \n - Credential stuffing \n - Password spraying \n - Phishing/social engineering campaigns \n - Further exploitation in combination with other vulnerabilities \n\n\n### Recommendation\n\n- Modify the [`taskForgot()`](https://github.com/getgrav/grav-plugin-admin/blob/6d673fc7c4f6962756f93ae651371e81f7f20924/classes/plugin/Controllers/Login/LoginController.php#L349) logic to always return a generic, non-identifying message, regardless of whether the username exists or rate limits are hit.\n\n- Example safe response:\n ```ini\n If the account exists, password reset instructions will be sent.\n ```\n\n- Do not include email addresses ($to) or other sensitive data in error messages.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "getgrav/grav"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.0-beta.27"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getgrav/grav/security/advisories/GHSA-q3qx-cp62-f6m7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66307"
}, {
"type" : "WEB",
"url" : "https://github.com/getgrav/grav-plugin-admin/commit/99f653296504f1d6408510dd2f6f20a45a26f9b0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getgrav/grav"
}, {
"type" : "WEB",
"url" : "https://github.com/getgrav/grav-plugin-admin/blob/6d673fc7c4f6962756f93ae651371e81f7f20924/classes/plugin/Controllers/Login/LoginController.php#L349"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-204" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-02T00:38:24Z",
"nvd_published_at" : "2025-12-01T22:15:50Z"
}
}