Arbitrary Code Execution in php-gettext

php-gettext Updated 02 Oct 2025

Summary

04/11/2019
N/A
Yes i
Critical
9.8

CVE-2015-8980: The plural form formula in ngettext family of calls in php-gettext before 1.0.12 allows remote attackers to execute arbitrary code. Affects php-gettext versions < 1.0.12-0.1. Fixed in 1.0.12-0.1. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

php-gettext is a PHP library that provides internationalization (i18n) and localization (l10n) support for PHP applications. It allows developers to translate their applications into multiple languages. However, a vulnerability in the plural form formula of the ngettext family of calls in php-gettext before version 1.0.12 can be exploited by remote attackers to execute arbitrary code.

Vulnerability Detail

The vulnerability, identified as CVE-2015-8980, originates from a flaw in the plural form formula used in php-gettext. By exploiting this vulnerability, remote attackers can execute arbitrary code on the affected system. This can lead to various consequences, including unauthorized access, data manipulation, or even complete system compromise. The severity of this vulnerability is rated as critical with a CVSS score of 9.8.

How To Fix

Minimum fixed version

1.0.12-0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php-gettext

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

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of php-gettext as soon as possible to protect the system from potential exploitation.

Conclusion

The vulnerability in php-gettext allows remote attackers to execute arbitrary code on the affected system. To mitigate this risk, it is recommended to update php-gettext to version 1.0.12 or later. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for php-gettext →

Share this vulnerability

FAQ

php-gettext is a PHP library that provides internationalization and localization support for PHP applications. It allows developers to translate their applications into multiple languages.

The vulnerability allows remote attackers to execute arbitrary code on the affected system. This can lead to unauthorized access, data manipulation, or complete system compromise.

The severity of this vulnerability is rated as critical with a CVSS score of 9.8.

To fix this vulnerability, update php-gettext to version 1.0.12 or later.

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of php-gettext.

Related vulnerabilities

Recent vulnerabilities recorded for php-gettext.

How To Fix

Minimum fixed version

1.0.12-0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade php-gettext

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