CVE-2020-8226: Phpbb/phpbb PhpBB Server-Side Request Forgery Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-jhm9-h84h-rw83
CVSS 5.8
CWE-610 CWE-918
Published
Advisory Summary

CVE-2020-8226 is a MODERATE (CVSS 5.8) phpbb server-side request forgery vulnerability vulnerability (CWE-610: Externally Controlled Reference to a Resource in Another Sphere) affecting Phpbb/phpbb libraries in the Packagist ecosystem. The issue involves phpbb server-side request forgery vulnerability. Remediation is available by upgrading affected packages to version 3.2.10, 3.3.1.

CVE-2020-8226 at a Glance

CVE Identifier CVE-2020-8226
GHSA Identifier GHSA-jhm9-h84h-rw83
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-610: Externally Controlled Reference to a Resource in Another Sphere
Affected Product Phpbb/phpbb
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.8

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

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

How to Fix CVE-2020-8226

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

phpbb/phpbb fixed: 3.2.10
Upgrade phpbb/phpbb to 3.2.10
phpbb/phpbb fixed: 3.3.1
Upgrade phpbb/phpbb to 3.3.1
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 phpbb/phpbb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-8226, inspect your project dependencies for Phpbb/phpbb:

inspect dependencies for phpbb/phpbb

Analyze the terminal output to locate any version of Phpbb/phpbb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.10), 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-610: Externally Controlled Reference to a Resource in Another Sphere, where the product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere. In Phpbb/phpbb, 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

A vulnerability exists in phpBB <v3.2.10 and <v3.3.1 which allowed remote image dimensions check to be used to SSRF.

CVE-2020-8226 Affected Phpbb/phpbb Versions

2 component(s)
Fixed Versions:
3.2.103.3.1
Product / Package Ecosystem Affected Versions Fixed Version
phpbb/phpbb
Packagist
≥ 3.2.0
< 3.2.10
3.2.10
phpbb/phpbb
Packagist
≥ 3.3.0
< 3.3.1
3.3.1

References

Frequently Asked Questions

What is CVE-2020-8226?
CVE-2020-8226 is a security vulnerability in Phpbb/phpbb involving phpBB Server-Side Request Forgery Vulnerability under CWE-610: Externally Controlled Reference to a Resource in Another Sphere.
Which Phpbb/phpbb versions are affected?
Affected versions include releases prior to 3.2.10, 3.3.1 across affected packages: phpbb/phpbb.
What version fixes CVE-2020-8226?
Upgrading to 3.2.10, 3.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpbb/phpbb affected?
Yes, phpbb/phpbb is affected in releases prior to 3.2.10, 3.3.1. Upgrade your dependency to 3.2.10, 3.3.1 or later.
What is the CVSS score of CVE-2020-8226?
CVE-2020-8226 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2020-8226?
CVE-2020-8226 is classified under CWE-610: Externally Controlled Reference to a Resource in Another Sphere (The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.).
How can I check Packagist dependencies for CVE-2020-8226?
Run the dependency tree command: 'inspect dependencies for phpbb/phpbb'. 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-jhm9-h84h-rw83",
  "modified" : "2023-04-21T21:07:53Z",
  "published" : "2022-05-24T17:26:05Z",
  "aliases" : [ "CVE-2020-8226" ],
  "summary" : "phpBB Server-Side Request Forgery Vulnerability",
  "details" : "A vulnerability exists in phpBB <v3.2.10 and <v3.3.1 which allowed remote image dimensions check to be used to SSRF.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpbb/phpbb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0"
      }, {
        "fixed" : "3.2.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "phpbb/phpbb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0"
      }, {
        "fixed" : "3.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8226"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpbb/phpbb-app/commit/0cfaaafb386d58576d200d56f1acdbcc2f2376e8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/phpbb/phpbb-app/commit/efc0a146bf12125eeb71d00470af774326a7bf0a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpbb/phpbb/CVE-2020-8226.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/phpbb/phpbb-app"
  }, {
    "type" : "WEB",
    "url" : "https://www.phpbb.com/community/viewtopic.php?f=14&t=2562631"
  }, {
    "type" : "WEB",
    "url" : "https://www.phpbb.com/community/viewtopic.php?f=14&t=2562636"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-610", "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-21T21:07:53Z",
    "nvd_published_at" : "2020-08-17T16:15:00Z"
  }
}