CVE-2012-5580: Code Injection

Published Dec 3, 2012
·
Updated

A format string flaw was reported [1] in libproxy's proxy commandline tool (bin/proxy). This was corrected upstream [2] and is included in the 0.4.0 release.

FORTIFYSOURCE turns this into a harmless crash:

% httpproxy=http://foo%n.example.com/ proxy http://example.com %n in writable segment detected http://foozsh: abort (core dumped) httpproxy=http://foo%n.example.com/ proxy http://example.com

NOTE: this flaw exists solely in the proxy tool, not the library.

[1] https://bugzilla.novell.com/showbug.cgi?id=791086 [2] https://code.google.com/p/libproxy/source/detail?r=475

Other sources

Format string vulnerability in the printproxies function in bin/proxy.c in libproxy 0.3.1 might allow context-dependent attackers to cause a denial of service (crash) and possibly execute arbitrary code via format string specifiers in a proxy name, as demonstrated using the httpproxy environment variable or a PAC file.

MITRE

Affected Software

2 affected componentsFixes available
redhat/libproxy<0.4.0
0.4.0
Libproxy Project Libproxy=0.3.1

Event History

Oct 27, 2014
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-5580?

CVE-2012-5580 has a moderate to high severity level due to the potential for a format string vulnerability.

2

How do I fix CVE-2012-5580?

To fix CVE-2012-5580, you should upgrade libproxy to version 0.4.0 or later.

3

Which versions of libproxy are affected by CVE-2012-5580?

CVE-2012-5580 affects libproxy version 0.3.1 and earlier versions.

4

Is there a workaround for CVE-2012-5580?

No official workaround is recommended for CVE-2012-5580; upgrading is the best solution.

5

Who reported CVE-2012-5580?

CVE-2012-5580 was reported by a security researcher and discussed in public vulnerability databases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203