VYPR
Unrated severityNVD Advisory· Published Nov 4, 2019· Updated Aug 6, 2024

CVE-2015-8980

CVE-2015-8980

Description

The plural form formula in ngettext family of calls in php-gettext before 1.0.12 allows remote attackers to execute arbitrary code.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

php-gettext before 1.0.12 allows remote code execution via unsanitized count parameter in ngettext family calls.

Vulnerability

The php-gettext library before version 1.0.12 contains a code injection vulnerability in the ngettext, npgettext, and select_string functions. The plural form formula is evaluated using eval() or similar, and if the count parameter is passed unsanitized from an untrusted user, arbitrary PHP code can be injected [1][2][3]. Affected versions are all prior to 1.0.12.

Exploitation

An attacker can exploit this by providing a malicious count value to any application that uses the ngettext family of calls with user-supplied input. No authentication is required if the application exposes this functionality to unauthenticated users. The attacker crafts a string that, when evaluated as part of the plural formula, executes arbitrary PHP code [1][3].

Impact

Successful exploitation allows remote attackers to execute arbitrary PHP code on the server, leading to full compromise of the application and potentially the underlying system. This includes data theft, modification, or denial of service [1][2][3].

Mitigation

The vulnerability is fixed in php-gettext version 1.0.12, released on 2016-12-09 [2][4]. Users should upgrade to this version or later. The fix throws an exception if the count parameter is not a number, preventing code injection [2]. No workaround is available other than upgrading. The issue is tracked in Red Hat Bugzilla [3] and Fedora updates [4].

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

7

News mentions

0

No linked articles in our index yet.