← Vulnerability feed

Vulnerability record · CVE-2012-6329 · published 4 January 2013

CVE-2012-6329: Perl Locale::Maketext code injection via crafted translation strings

Perl · Perl

The _compile function in Locale::Maketext's Maketext.pm in Perl before 5.17.7 mishandles backslashes and fully qualified method names when compiling bracket notation, allowing injected Perl code to run. Applications that pass user-supplied translation strings into this library, such as TWiki before 5.1.3 and Foswiki 1.0.x through 1.0.10 and 1.1.x through 1.1.6, are exposed to remote command execution.

7.5 CVSS 2.0 High EPSS 63% · top 0.8% CWE-94 · Code injection
7.5CVSS 2.0 base score
63%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
34References
16 Jun 2026Last modified by NVD

Description

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly handle backslashes and fully qualified method names during compilation of bracket notation, which allows context-dependent attackers to execute arbitrary commands via crafted input to an application that accepts translation strings from users, as demonstrated by the TWiki application before 5.1.3, and the Foswiki application 1.0.x through 1.0.10 and 1.1.x through 1.1.6.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityRemote, unauthenticated code execution with a very high EPSS score, though no confirmed in-the-wild exploitation is recorded.

What it is

The _compile function in Locale::Maketext's Maketext.pm in Perl before 5.17.7 mishandles backslashes and fully qualified method names when compiling bracket notation, allowing injected Perl code to run. Applications that pass user-supplied translation strings into this library, such as TWiki before 5.1.3 and Foswiki 1.0.x through 1.0.10 and 1.1.x through 1.1.6, are exposed to remote command execution.

Impact

An attacker who can supply translation strings gains arbitrary command execution in the context of the Perl application, leading to full compromise of the host or application data.

Attack surface

Reached over the network through any application interface that accepts user-controlled translation strings and feeds them to Locale::Maketext; the CVSS vector AV:N/AC:L/Au:N indicates no authentication is required, and no user interaction is described.

Exploitation

Not listed in CISA KEV and no reference carries an exploit tag, but EPSS is 0.63488 (99.17th percentile), indicating a high modeled likelihood of exploitation.

What to do

  • Upgrade Perl to 5.17.7 or later, or apply the vendor patch referenced in the perl5.git commit.
  • Upgrade TWiki to 5.1.3 or later and Foswiki past the affected 1.0.x and 1.1.x ranges.
  • Apply distribution backports (Debian, Ubuntu USN-2099-1, Red Hat RHSA-2013-0685, Mandriva, Mageia) where a full Perl upgrade is not possible.
  • Do not pass untrusted user input as translation strings to Locale::Maketext; validate or restrict such input at the application layer.

Detection

  • Monitor application and web logs for translation strings containing backslashes or fully qualified method names in bracket notation.
  • Alert on unexpected child processes or shell execution spawned by Perl web applications (TWiki, Foswiki).
  • Audit installed Perl and TWiki/Foswiki versions against the fixed releases to find unpatched instances.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695224
http://code.activestate.com/lists/perl5-porters/187746/
http://code.activestate.com/lists/perl5-porters/187763/
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735
http://openwall.com/lists/oss-security/2012/12/11/4
http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perl5177delta.pod
http://perl5.git.perl.org/perl.git/commit/1735f6f53ca19f99c6e9e39496c486af323ba6a8 Patch
http://rhn.redhat.com/errata/RHSA-2013-0685.html
http://sourceforge.net/mailarchive/message.php?msg_id=30219695
http://twiki.org/cgi-bin/view/Codev/SecurityAlert-CVE-2012-6329
http://www.mandriva.com/security/advisories?name=MDVSA-2013:113
http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
http://www.securityfocus.com/bid/56950
http://www.ubuntu.com/usn/USN-2099-1
https://bugzilla.redhat.com/show_bug.cgi?id=884354
https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0032
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695224
http://code.activestate.com/lists/perl5-porters/187746/
http://code.activestate.com/lists/perl5-porters/187763/
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10735
http://openwall.com/lists/oss-security/2012/12/11/4
http://perl5.git.perl.org/perl.git/blob/HEAD:/pod/perl5177delta.pod
http://perl5.git.perl.org/perl.git/commit/1735f6f53ca19f99c6e9e39496c486af323ba6a8 Patch
http://rhn.redhat.com/errata/RHSA-2013-0685.html
http://sourceforge.net/mailarchive/message.php?msg_id=30219695
http://twiki.org/cgi-bin/view/Codev/SecurityAlert-CVE-2012-6329
http://www.mandriva.com/security/advisories?name=MDVSA-2013:113
http://www.oracle.com/technetwork/topics/security/ovmbulletinjul2016-3090546.html
http://www.securityfocus.com/bid/56950
http://www.ubuntu.com/usn/USN-2099-1
https://bugzilla.redhat.com/show_bug.cgi?id=884354
https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0032

Track CVE-2012-6329 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-8376Perl vulnerabilityPerl versions before 5.40.5-RC1, from 5.41.0 before 5.42.3-RC1, from 5.43.0 before 5.43.11 have a heap buffer overflow when compiling regular express…EPSS 0.48%9.8CVE-2026-4176Perl vulnerabilityPerl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Z…EPSS 0.81%9.8CVE-2022-48522Perl out-of-bounds write vulnerabilityIn Perl 5.34.0, function S_find_uninit_var in sv.c has a stack-based crash that can lead to remote code execution or local privilege escalation.EPSS 2.6%9.8CVE-2018-18311Perl integer overflow vulnerabilityPerl before 5.26.3 and 5.28.x before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 12%9.8CVE-2018-18314Perl memory buffer overflow vulnerabilityPerl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 6.1%9.8CVE-2018-18312Perl memory buffer overflow vulnerabilityPerl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid write operations.EPSS 12%9.8CVE-2018-6797Debian linux out-of-bounds write vulnerabilityAn issue was discovered in Perl 5.18 through 5.26. A crafted regular expression can cause a heap-based buffer overflow, with control over the bytes w…EPSS 6.5%9.8CVE-2018-6913Debian linux out-of-bounds write vulnerabilityHeap-based buffer overflow in the pack function in Perl before 5.26.2 allows context-dependent attackers to execute arbitrary code via a large item c…EPSS 11%

Source: NIST National Vulnerability Database (record CVE-2012-6329), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.