CVE-2017-8385: Craftcms/cms Craft CMS Subject To URL Vulnerability

MODERATE
Advisory Identifier: GHSA-j27g-r58q-624w
CVSS 5.3
CWE-640
Published
Advisory Summary

CVE-2017-8385 is a MODERATE (CVSS 5.3) craft cms subject to url vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Craftcms/cms libraries in the Packagist ecosystem. The issue involves craft cms subject to url forgery. Remediation is available by upgrading affected packages to version 2.6.2976.

CVE-2017-8385 at a Glance

CVE Identifier CVE-2017-8385
GHSA Identifier GHSA-j27g-r58q-624w
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-640: Weak Password Recovery Mechanism for Forgotten Password
Affected Product Craftcms/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2017-8385

To remediate this vulnerability, upgrade all affected Craftcms/cms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

craftcms/cms fixed: 2.6.2976
Upgrade craftcms/cms to 2.6.2976
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for craftcms/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-8385, inspect your project dependencies for Craftcms/cms:

inspect dependencies for craftcms/cms

Analyze the terminal output to locate any version of Craftcms/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.2976), 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-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Craftcms/cms, 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

Craft CMS before 2.6.2976 does not prevent modification of the URL in a forgot-password email message.

CVE-2017-8385 Affected Craftcms/cms Versions

1 component(s)
Fixed Versions:
2.6.2976
Product / Package Ecosystem Affected Versions Fixed Version
craftcms/cms
Packagist
< 2.6.2976
2.6.2976

References

Frequently Asked Questions

What is CVE-2017-8385?
CVE-2017-8385 is a security vulnerability in Craftcms/cms involving Craft CMS subject to URL forgery under CWE-640: Weak Password Recovery Mechanism for Forgotten Password.
Which Craftcms/cms versions are affected?
Affected versions include releases prior to 2.6.2976 across affected packages: craftcms/cms.
What version fixes CVE-2017-8385?
Upgrading to 2.6.2976 (or the latest patched release for your respective branch) resolves the vulnerability.
Is craftcms/cms affected?
Yes, craftcms/cms is affected in releases prior to 2.6.2976. Upgrade your dependency to 2.6.2976 or later.
What is the CVSS score of CVE-2017-8385?
CVE-2017-8385 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2017-8385?
CVE-2017-8385 is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password (The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.).
How can I check Packagist dependencies for CVE-2017-8385?
Run the dependency tree command: 'inspect dependencies for craftcms/cms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j27g-r58q-624w",
  "modified" : "2024-04-25T22:30:26Z",
  "published" : "2022-05-17T02:46:10Z",
  "aliases" : [ "CVE-2017-8385" ],
  "summary" : "Craft CMS subject to URL forgery",
  "details" : "Craft CMS before 2.6.2976 does not prevent modification of the URL in a forgot-password email message.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "craftcms/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.2976"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-8385"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/commit/38c594badc8efc468b6162ec921d645011a50d35"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/craftcms/cms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/craftcms/cms/blob/2.6.2976/CHANGELOG.md#security"
  }, {
    "type" : "WEB",
    "url" : "https://twitter.com/CraftCMS/status/857743080224473088"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-640" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T22:30:26Z",
    "nvd_published_at" : "2017-05-01T06:59:00Z"
  }
}