CVE-2012-1589: Drupal/drupal Drupal Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-wwrm-8947-4m6c
CWE-20 CWE-601
Published
Advisory Summary

CVE-2012-1589 is a MODERATE drupal open redirect vulnerability (CWE-20: Improper Input Validation) affecting Drupal/drupal libraries in the Packagist ecosystem. The issue involves drupal open redirect. Remediation is available by upgrading affected packages to version 7.13.

CVE-2012-1589 at a Glance

CVE Identifier CVE-2012-1589
GHSA Identifier GHSA-wwrm-8947-4m6c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Drupal/drupal
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2012-1589

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

drupal/drupal fixed: 7.13
Upgrade drupal/drupal to 7.13
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 drupal/drupal

How to Check if You Are Affected

To determine whether your application is affected by CVE-2012-1589, inspect your project dependencies for Drupal/drupal:

inspect dependencies for drupal/drupal

Analyze the terminal output to locate any version of Drupal/drupal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.13), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Drupal/drupal, 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

Open redirect vulnerability in the Form API in Drupal 7.x before 7.13 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via crafted parameters in a destination URL.

CVE-2012-1589 Affected Drupal/drupal Versions

1 component(s)
Fixed Versions:
7.13
Product / Package Ecosystem Affected Versions Fixed Version
drupal/drupal
Packagist
≥ 7.0
< 7.13
7.13

References

Frequently Asked Questions

What is CVE-2012-1589?
CVE-2012-1589 is a security vulnerability in Drupal/drupal involving Drupal Open Redirect under CWE-20: Improper Input Validation.
Which Drupal/drupal versions are affected?
Affected versions include releases prior to 7.13 across affected packages: drupal/drupal.
What version fixes CVE-2012-1589?
Upgrading to 7.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is drupal/drupal affected?
Yes, drupal/drupal is affected in releases prior to 7.13. Upgrade your dependency to 7.13 or later.
What CWE is associated with CVE-2012-1589?
CVE-2012-1589 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2012-1589?
Run the dependency tree command: 'inspect dependencies for drupal/drupal'. 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-wwrm-8947-4m6c",
  "modified" : "2023-08-29T21:31:37Z",
  "published" : "2022-05-17T04:56:42Z",
  "aliases" : [ "CVE-2012-1589" ],
  "summary" : "Drupal Open Redirect",
  "details" : "Open redirect vulnerability in the Form API in Drupal 7.x before 7.13 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via crafted parameters in a destination URL.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "drupal/drupal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0"
      }, {
        "fixed" : "7.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-1589"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20120507035905/http://www.securityfocus.com/bid/53365"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20150523060428/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2013:074/?name=MDVSA-2013:074"
  }, {
    "type" : "WEB",
    "url" : "http://drupal.org/node/1557938"
  }, {
    "type" : "WEB",
    "url" : "http://jvn.jp/en/jp/JVN45898075/index.html"
  }, {
    "type" : "WEB",
    "url" : "http://jvndb.jvn.jp/jvndb/JVNDB-2012-000045"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T21:31:37Z",
    "nvd_published_at" : "2012-05-18T20:55:00Z"
  }
}