Remote Code Execution Vulnerability in phpBB3 - CVE-2018-19274

phpbb3 Updated 03 Oct 2025

Summary

17/11/2018
N/A
Yes i
High
7.2

UBUNTU-CVE-2018-19274: Passing an absolute path to a file_exists check in phpBB before 3.2.4 allows Remote Code Execution through Object Injection by employing Phar deserialization when an attacker has access to the Admin Control Panel with fo... Affects phpbb3 versions < 3.0.12-1ubuntu0.1~esm1. Fixed in 3.0.12-1ubuntu0.1~esm1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

phpBB3 is a widely used open-source forum software that allows users to create and manage online discussion boards. It is known for its extensibility, user-friendly interface, and strong community support. However, versions prior to 3.2.4 are susceptible to a critical vulnerability that can lead to remote code execution, particularly when an attacker gains access to the Admin Control Panel with founder permissions.

Vulnerability Detail

The vulnerability arises from the improper handling of file paths in the file_exists check within phpBB3. By passing an absolute path, an attacker can exploit this flaw through Object Injection via Phar deserialization. This can lead to remote code execution, allowing the attacker to execute arbitrary code on the server, potentially compromising the entire forum and its data.

How To Fix

Minimum fixed version

3.0.12-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpbb3

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

Workaround

As a temporary workaround, it is advisable to restrict access to the Admin Control Panel to trusted users only, and to monitor file paths used in the application to prevent unauthorized access. Additionally, disabling the use of Phar deserialization can mitigate the risk until a proper patch is applied.

Conclusion

CVE-2018-19274 represents a significant security risk for phpBB3 installations prior to version 3.2.4. It is crucial for users to update their software to the latest patched versions to protect against potential remote code execution attacks. Additionally, employing monitoring tools like Vulert can help maintain security by alerting users to vulnerabilities in real-time.

See every vulnerability recorded for phpbb3 →

Share this vulnerability

FAQ

CVE-2018-19274 is a vulnerability in phpBB3 that allows remote code execution through improper handling of file paths.

If you are using a version of phpBB3 prior to 3.2.4, your installation may be vulnerable. You can check your version in the admin panel.

Exploitation of this vulnerability can lead to remote code execution, allowing attackers to take control of the server and access sensitive data.

Yes, tools like Vulert can monitor your application for open-source vulnerabilities in real-time using a manifest file.

The CVSS score for CVE-2018-19274 is 7.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for phpbb3.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.0.12-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpbb3

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