CVE-2013-6919: James heinrich/phpthumb PhpThumb Is Vulnerable To Server-Side Vulnerability

MODERATE
Advisory Identifier: GHSA-3747-gjc9-vvg6
CWE-918
Published
Advisory Summary

CVE-2013-6919 is a MODERATE phpthumb is vulnerable to server-side vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting James heinrich/phpthumb libraries in the Packagist ecosystem. The issue involves phpthumb is vulnerable to server-side request forgery (ssrf). Remediation is available by upgrading affected packages to version 1.7.12.

CVE-2013-6919 at a Glance

CVE Identifier CVE-2013-6919
GHSA Identifier GHSA-3747-gjc9-vvg6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product James heinrich/phpthumb
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2013-6919

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

james-heinrich/phpthumb fixed: 1.7.12
Upgrade james-heinrich/phpthumb to 1.7.12
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 james-heinrich/phpthumb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-6919, inspect your project dependencies for James heinrich/phpthumb:

inspect dependencies for james-heinrich/phpthumb

Analyze the terminal output to locate any version of James heinrich/phpthumb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.12), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In James heinrich/phpthumb, 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 default configuration of phpThumb before 1.7.12 has a false value for the disable_debug option, which allows remote attackers to conduct Server-Side Request Forgery (SSRF) attacks via the src parameter.

CVE-2013-6919 Affected James heinrich/phpthumb Versions

1 component(s)
Fixed Versions:
1.7.12
Product / Package Ecosystem Affected Versions Fixed Version
james-heinrich/phpthumb
Packagist
< 1.7.12
1.7.12

References

Frequently Asked Questions

What is CVE-2013-6919?
CVE-2013-6919 is a security vulnerability in James heinrich/phpthumb involving phpThumb is vulnerable to Server-Side Request Forgery (SSRF) under CWE-918: Server-Side Request Forgery (SSRF).
Which James heinrich/phpthumb versions are affected?
Affected versions include releases prior to 1.7.12 across affected packages: james-heinrich/phpthumb.
What version fixes CVE-2013-6919?
Upgrading to 1.7.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is james-heinrich/phpthumb affected?
Yes, james-heinrich/phpthumb is affected in releases prior to 1.7.12. Upgrade your dependency to 1.7.12 or later.
What CWE is associated with CVE-2013-6919?
CVE-2013-6919 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Packagist dependencies for CVE-2013-6919?
Run the dependency tree command: 'inspect dependencies for james-heinrich/phpthumb'. 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-3747-gjc9-vvg6",
  "modified" : "2023-08-29T18:13:58Z",
  "published" : "2022-05-17T04:19:03Z",
  "aliases" : [ "CVE-2013-6919" ],
  "summary" : "phpThumb is vulnerable to Server-Side Request Forgery (SSRF)",
  "details" : "The default configuration of phpThumb before 1.7.12 has a false value for the disable_debug option, which allows remote attackers to conduct Server-Side Request Forgery (SSRF) attacks via the src parameter.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "james-heinrich/phpthumb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6919"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/JamesHeinrich/phpThumb/commit/457a37d4a22ac9cdbbfe19577376622e58df81b0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/JamesHeinrich/phpThumb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/JamesHeinrich/phpThumb/blob/7ee966b38ddd7eb4d8091389aa514604710711c8/docs/phpthumb.changelog.txt#L106"
  }, {
    "type" : "WEB",
    "url" : "http://www.rafayhackingarticles.net/2013/11/phpthumb-server-side-request-forgery.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T18:13:58Z",
    "nvd_published_at" : "2014-12-27T18:59:00Z"
  }
}