CVE-2015-6527 (GCVE-0-2015-6527)

Vulnerability from cvelistv5 – Published: 2016-01-19 02:00 – Updated: 2024-08-06 07:22
VLAI
Summary
The php_str_replace_in_subject function in ext/standard/string.c in PHP 7.x before 7.0.0 allows remote attackers to execute arbitrary code via a crafted value in the third argument to the str_ireplace function.
CWE
  • n/a
References
Date Public
2015-07-30 00:00
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-06T07:22:22.215Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5"
          },
          {
            "name": "[oss-security] 20150730 Re: CVE Request: PHP v7 - Code execution vulnerability",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2015/07/30/11"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://bugs.php.net/bug.php?id=70140"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "datePublic": "2015-07-30T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "The php_str_replace_in_subject function in ext/standard/string.c in PHP 7.x before 7.0.0 allows remote attackers to execute arbitrary code via a crafted value in the third argument to the str_ireplace function."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2016-01-19T04:57:02.000Z",
        "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "shortName": "mitre"
      },
      "references": [
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5"
        },
        {
          "name": "[oss-security] 20150730 Re: CVE Request: PHP v7 - Code execution vulnerability",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2015/07/30/11"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://bugs.php.net/bug.php?id=70140"
        }
      ],
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2015-6527",
          "STATE": "PUBLIC"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "n/a",
                      "version": {
                        "version_data": [
                          {
                            "version_value": "n/a"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "n/a"
              }
            ]
          }
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "The php_str_replace_in_subject function in ext/standard/string.c in PHP 7.x before 7.0.0 allows remote attackers to execute arbitrary code via a crafted value in the third argument to the str_ireplace function."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "n/a"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "http://git.php.net/?p=php-src.git;a=commit;h=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5",
              "refsource": "CONFIRM",
              "url": "http://git.php.net/?p=php-src.git;a=commit;h=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5"
            },
            {
              "name": "[oss-security] 20150730 Re: CVE Request: PHP v7 - Code execution vulnerability",
              "refsource": "MLIST",
              "url": "http://www.openwall.com/lists/oss-security/2015/07/30/11"
            },
            {
              "name": "https://bugs.php.net/bug.php?id=70140",
              "refsource": "CONFIRM",
              "url": "https://bugs.php.net/bug.php?id=70140"
            }
          ]
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
    "assignerShortName": "mitre",
    "cveId": "CVE-2015-6527",
    "datePublished": "2016-01-19T02:00:00.000Z",
    "dateReserved": "2015-08-20T00:00:00.000Z",
    "dateUpdated": "2024-08-06T07:22:22.215Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2015-6527",
      "date": "2026-09-26",
      "epss": "0.03861",
      "percentile": "0.89806"
    },
    "nvd": {
      "cve": {
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:-:*:*:*:*:*:*",
                    "matchCriteriaId": "E5C4C35D-F8FE-429F-8F6E-9178EAB21772",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:alpha1:*:*:*:*:*:*",
                    "matchCriteriaId": "DA0E42D0-A586-4735-B3F2-DC51CC1ACDFD",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:alpha2:*:*:*:*:*:*",
                    "matchCriteriaId": "3358E003-0F13-4FC2-9A00-BE8B3A907912",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:beta1:*:*:*:*:*:*",
                    "matchCriteriaId": "1A31D38C-B4A3-4412-8C04-0034336A4008",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:beta2:*:*:*:*:*:*",
                    "matchCriteriaId": "FB0EF60E-6DCC-40E2-912F-65639A1E03D2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:beta3:*:*:*:*:*:*",
                    "matchCriteriaId": "1A24B9F1-51E6-4070-80CE-6B8BA35E2FA6",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc1:*:*:*:*:*:*",
                    "matchCriteriaId": "08F899C5-185B-422D-80C8-26C1D1035CD2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc2:*:*:*:*:*:*",
                    "matchCriteriaId": "52F5FB2E-EE4E-4692-BC61-32A48A6CB395",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc3:*:*:*:*:*:*",
                    "matchCriteriaId": "CBB01909-99C2-45CA-A78A-82310750B638",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc4:*:*:*:*:*:*",
                    "matchCriteriaId": "D4C3FE85-68E8-4B99-8925-8A77CA44C4B4",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc5:*:*:*:*:*:*",
                    "matchCriteriaId": "6111AC65-5B02-4E3D-BF7E-340809D57515",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc6:*:*:*:*:*:*",
                    "matchCriteriaId": "235D8852-3E38-4859-BEDF-4BA8D5D12EB1",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc7:*:*:*:*:*:*",
                    "matchCriteriaId": "B97290A3-CC6A-493F-876B-A2D1A5F5E690",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:a:php:php:7.0.0:rc8:*:*:*:*:*:*",
                    "matchCriteriaId": "61C1862E-863E-4CAB-A9D7-9F2383AFA6FB",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "The php_str_replace_in_subject function in ext/standard/string.c in PHP 7.x before 7.0.0 allows remote attackers to execute arbitrary code via a crafted value in the third argument to the str_ireplace function."
          },
          {
            "lang": "es",
            "value": "La funci\u00f3n php_str_replace_in_subjec en ext/standard/string.c en PHP 7.x en versiones anteriores a 7.0.0 permite a atacantes remotos ejecutar c\u00f3digo arbitrario a trav\u00e9s de un valor manipulado en el tercer argumento en la funci\u00f3n str_ireplace."
          }
        ],
        "id": "CVE-2015-6527",
        "lastModified": "2026-05-06T22:30:45.220",
        "metrics": {
          "cvssMetricV2": [
            {
              "acInsufInfo": false,
              "baseSeverity": "HIGH",
              "cvssData": {
                "accessComplexity": "LOW",
                "accessVector": "NETWORK",
                "authentication": "NONE",
                "availabilityImpact": "PARTIAL",
                "baseScore": 7.5,
                "confidentialityImpact": "PARTIAL",
                "integrityImpact": "PARTIAL",
                "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
                "version": "2.0"
              },
              "exploitabilityScore": 10.0,
              "impactScore": 6.4,
              "obtainAllPrivilege": false,
              "obtainOtherPrivilege": false,
              "obtainUserPrivilege": false,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ],
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 7.3,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "LOW",
                "integrityImpact": "LOW",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 3.4,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2016-01-19T05:59:01.327",
        "references": [
          {
            "source": "cve@mitre.org",
            "url": "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5"
          },
          {
            "source": "cve@mitre.org",
            "tags": [
              "Mailing List",
              "Third Party Advisory"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2015/07/30/11"
          },
          {
            "source": "cve@mitre.org",
            "tags": [
              "Exploit",
              "Issue Tracking",
              "Vendor Advisory"
            ],
            "url": "https://bugs.php.net/bug.php?id=70140"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=6aeee47b2cd47915ccfa3b41433a3f57aea24dd5"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "tags": [
              "Mailing List",
              "Third Party Advisory"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2015/07/30/11"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "tags": [
              "Exploit",
              "Issue Tracking",
              "Vendor Advisory"
            ],
            "url": "https://bugs.php.net/bug.php?id=70140"
          }
        ],
        "sourceIdentifier": "cve@mitre.org",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "NVD-CWE-noinfo"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2025-11-21T12:11:13+00:00",
      "cve": "CVE-2015-6527",
      "id": "CVE-2015-6527",
      "initial_release_date": "2015-07-26T00:00:00+00:00",
      "product_status:known_not_affected": "141",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "php: Arbitrary code execution in str_ireplace function",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2015/cve-2015-6527.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…