CVE-2018-19274: phpBB Remote Code Execution

phpbb/phpbb Updated 02 Oct 2025

Summary

13/05/2022
Yes i
High
7.2

CVE-2018-19274: phpBB Remote Code Execution. Affects phpbb/phpbb versions < 3.2.4. Fixed in 3.2.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

phpBB is a popular open-source forum software written in PHP. It provides a platform for creating online communities and discussion boards. The vulnerability identified as CVE-2018-19274 affects phpBB versions prior to 3.2.4. This vulnerability allows for remote code execution through object injection when an attacker with founder permissions has access to the Admin Control Panel. The vulnerability arises from a file_exists check that can be bypassed by passing an absolute path. This can lead to the exploitation of Phar deserialization.

Vulnerability Detail

The vulnerability in phpBB allows an attacker with founder permissions to execute arbitrary code remotely. By exploiting the file_exists check, an attacker can inject malicious objects using Phar deserialization. This can result in the execution of arbitrary PHP code on the server, potentially leading to complete compromise of the affected system. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.2.

How To Fix

Minimum fixed version

3.2.4

This is the first release that contains the fix.

composer require phpbb/phpbb:3.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately possible, a temporary workaround can be implemented by modifying the affected code. The file_exists check should be replaced with a more secure method of verifying file existence, such as using the is_file function. Additionally, restricting access to the Admin Control Panel and limiting the permissions of users with founder privileges can help mitigate the risk of exploitation.

Conclusion

The vulnerability in phpBB (CVE-2018-19274) allows for remote code execution through object injection when an attacker with founder permissions has access to the Admin Control Panel. Upgrading to phpBB version 3.2.4 or later is the recommended solution to fix this vulnerability. Implementing the suggested workaround and following best practices for securing phpBB installations can help mitigate the risk. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for phpbb/phpbb →

Share this vulnerability

FAQ

phpBB is an open-source forum software written in PHP. It provides a platform for creating online communities and discussion boards.

Remote code execution refers to the ability of an attacker to execute arbitrary code on a target system remotely, without direct access to the server.

The vulnerability in phpBB arises from a file_exists check that can be bypassed by passing an absolute path. This allows an attacker with founder permissions to inject malicious objects using Phar deserialization, leading to the execution of arbitrary PHP code on the server.

The exploitation of this vulnerability can result in the complete compromise of the affected system. An attacker can execute arbitrary code, potentially gaining unauthorized access, stealing sensitive information, or causing damage to the system.

To protect your phpBB installation, it is recommended to upgrade to version 3.2.4 or later. Additionally, ensure that access to the Admin Control Panel is restricted and the permissions of users with founder privileges are limited.

Related vulnerabilities

Recent vulnerabilities recorded for phpbb/phpbb.

How To Fix

Minimum fixed version

3.2.4

This is the first release that contains the fix.

composer require phpbb/phpbb:3.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback