CVE-2014-4672: Yiisoft/yii Yii PHP Framework Arbitrary PHP Vulnerability

HIGH
Advisory Identifier: GHSA-74qv-rv53-5wcx
CWE-94
Published
Advisory Summary

CVE-2014-4672 is a HIGH yii php framework arbitrary php vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Yiisoft/yii libraries in the Packagist ecosystem. The issue involves yii php framework arbitrary php scripts execution. Remediation is available by upgrading affected packages to version 1.1.15.

CVE-2014-4672 at a Glance

CVE Identifier CVE-2014-4672
GHSA Identifier GHSA-74qv-rv53-5wcx
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Yiisoft/yii
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2014-4672

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

yiisoft/yii fixed: 1.1.15
Upgrade yiisoft/yii to 1.1.15
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 yiisoft/yii

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-4672, inspect your project dependencies for Yiisoft/yii:

inspect dependencies for yiisoft/yii

Analyze the terminal output to locate any version of Yiisoft/yii in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.15), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Yiisoft/yii, 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

The CDetailView widget in Yii PHP Framework 1.1.14 allows remote attackers to execute arbitrary PHP scripts via vectors related to the value property.

CVE-2014-4672 Affected Yiisoft/yii Versions

1 component(s)
Fixed Versions:
1.1.15
Product / Package Ecosystem Affected Versions Fixed Version
yiisoft/yii
Packagist
≥ 1.1.14
< 1.1.15
1.1.15

References

Frequently Asked Questions

What is CVE-2014-4672?
CVE-2014-4672 is a security vulnerability in Yiisoft/yii involving Yii PHP Framework arbitrary PHP scripts execution under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Yiisoft/yii versions are affected?
Affected versions include releases prior to 1.1.15 across affected packages: yiisoft/yii.
What version fixes CVE-2014-4672?
Upgrading to 1.1.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is yiisoft/yii affected?
Yes, yiisoft/yii is affected in releases prior to 1.1.15. Upgrade your dependency to 1.1.15 or later.
What CWE is associated with CVE-2014-4672?
CVE-2014-4672 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2014-4672?
Run the dependency tree command: 'inspect dependencies for yiisoft/yii'. 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-74qv-rv53-5wcx",
  "modified" : "2024-04-24T18:31:47Z",
  "published" : "2022-05-17T04:38:57Z",
  "aliases" : [ "CVE-2014-4672" ],
  "summary" : "Yii PHP Framework arbitrary PHP scripts execution",
  "details" : "The CDetailView widget in Yii PHP Framework 1.1.14 allows remote attackers to execute arbitrary PHP scripts via vectors related to the value property.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "yiisoft/yii"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.14"
      }, {
        "fixed" : "1.1.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-4672"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii/CVE-2014-4672.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/yiisoft/yii"
  }, {
    "type" : "WEB",
    "url" : "https://www.yiiframework.com/news/78/yii-1-1-15-is-released-security-fix"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T18:31:47Z",
    "nvd_published_at" : "2014-07-03T17:55:00Z"
  }
}