CVE-2012-6329

TWiki MAKETEXT Remote Command Execution

Title source: metasploit
STIX 2.1

Exploitation Summary

EIP tracks 4 public exploits for CVE-2012-6329. PoCs published by Metasploit, Brian Carlson, juan vazquez, George Clark, juan vazquez, including Metasploit module exploits/unix/webapp/foswiki_maketext.

AI-analyzed exploit summary This Metasploit module exploits CVE-2012-6329, a command injection vulnerability in TWiki's MAKETEXT variable due to unsanitized input passed to Perl's eval function. It allows remote command execution on TWiki installations with localization enabled.

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.

Exploits (4)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremoteunix
https://www.exploit-db.com/exploits/23579

This Metasploit module exploits CVE-2012-6329, a command injection vulnerability in TWiki's MAKETEXT variable due to unsanitized input passed to Perl's eval function. It allows remote command execution on TWiki installations with localization enabled.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: TWiki versions prior to 5.1.3
No auth needed
Prerequisites: TWiki with UserInterfaceInternationalisation enabled · Network access to the TWiki instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Brian Carlson, juan vazquez · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/foswiki_maketext.rb

This Metasploit module exploits a command injection vulnerability in Foswiki's MAKETEXT variable, which passes unsanitized input to Perl's eval function. It allows remote command execution on vulnerable Foswiki installations with localization enabled.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Foswiki 1.1.5 and earlier
No auth needed
Prerequisites: Foswiki with UserInterfaceInternationalisation enabled · Edit permissions on a page (or anonymous access)
devstral-2 · analyzed Apr 30, 2026 Full analysis →
exploitdb WORKING POC
rubyremoteunix
https://www.exploit-db.com/exploits/23580

This Metasploit module exploits a command injection vulnerability in Foswiki's MAKETEXT variable, which passes unsanitized input to Perl's eval function. It allows remote command execution on vulnerable Foswiki installations with localization enabled.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Foswiki 1.1.5 and earlier
No auth needed
Prerequisites: Foswiki with UserInterfaceInternationalisation enabled · Edit permissions on a page (or anonymous access)
devstral-2 · analyzed Feb 19, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by George Clark, juan vazquez · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/twiki_maketext.rb

This Metasploit module exploits CVE-2012-6329, a command injection vulnerability in TWiki's MAKETEXT variable due to unsanitized input passed to Perl's eval function. It allows remote command execution on vulnerable TWiki installations with localization enabled.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: TWiki versions 4.0.x to 5.1.2
No auth needed
Prerequisites: TWiki with UserInterfaceInternationalisation enabled · Network access to TWiki instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (17)

Core 17
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2013-0685.html
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2013:113
Various Sources mailing-list x_refsource_mlist
http://code.activestate.com/lists/perl5-porters/187763/
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2012/12/11/4
Issue Tracking x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=884354
Third Party Advisory x_refsource_confirm
https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0032
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-2099-1
Various Sources mailing-list x_refsource_mlist
http://code.activestate.com/lists/perl5-porters/187746/
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/56950
Issue Tracking x_refsource_confirm
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695224

Scores

EPSS 0.8197
EPSS Percentile 99.2%

Details

CWE
CWE-94
Status published
Products (31)
perl/perl 5.10
perl/perl 5.10.0 (3 CPE variants)
perl/perl 5.10.1 (3 CPE variants)
perl/perl 5.11.0
perl/perl 5.11.1
perl/perl 5.11.2
perl/perl 5.11.3
perl/perl 5.11.4
perl/perl 5.11.5
perl/perl 5.12.0 (7 CPE variants)
... and 21 more
Published Jan 04, 2013
Tracked Since Feb 18, 2026