CVE-2012-4548: Command Injection

Published Oct 28, 2012
·
Updated

Argument injection vulnerability in syntax-highlighting.sh in cgit 9.0.3 and earlier allows remote authenticated users with permissions to add files to execute arbitrary commands via the --plug-in argument to the highlight command.

Other sources

syntax-highlighting.sh: Fix command injection.

By not quoting the argument, an attacker with the ability to add files to the repository could pass arbitrary arguments to the highlight command, in particular, the --plug-in argument which can lead to arbitrary command execution.

This patch adds simple argument quoting.

External references: http://git.zx2c4.com/cgit/commit/?id=7ea35f9f8ecf61ab42be9947aae1176ab6e089bd

Red Hat

Affected Software

28 affected components
Lars Hjemli Cgit<=0.9.0.3
Lars Hjemli Cgit=0.1
Lars Hjemli Cgit=0.2
Lars Hjemli Cgit=0.3
Lars Hjemli Cgit=0.4
Lars Hjemli Cgit=0.5
Lars Hjemli Cgit=0.6
Lars Hjemli Cgit=0.6.1
Lars Hjemli Cgit=0.6.2
Lars Hjemli Cgit=0.6.3
Lars Hjemli Cgit=0.7
Lars Hjemli Cgit=0.7.1
Lars Hjemli Cgit=0.7.2
Lars Hjemli Cgit=0.8
Lars Hjemli Cgit=0.8.1
Lars Hjemli Cgit=0.8.1.1
Lars Hjemli Cgit=0.8.2
Lars Hjemli Cgit=0.8.2.1
Lars Hjemli Cgit=0.8.2.2
Lars Hjemli Cgit=0.8.3
Lars Hjemli Cgit=0.8.3.1
Lars Hjemli Cgit=0.8.3.2
Lars Hjemli Cgit=0.8.3.3
Lars Hjemli Cgit=0.8.3.4
Lars Hjemli Cgit=0.8.3.5
Lars Hjemli Cgit=0.9
Lars Hjemli Cgit=0.9.0.1
Lars Hjemli Cgit=0.9.0.2

Event History

Oct 28, 2012
Data Sourced
via Red Hat·06:59 AM
DescriptionSeverityAffected Software
Nov 11, 2012
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-4548?

CVE-2012-4548 has a medium severity rating due to the potential for authenticated users to execute arbitrary commands.

2

How do I fix CVE-2012-4548?

To fix CVE-2012-4548, update to a version of cgit that is later than 0.9.0.3 or apply the patch provided in the official commit.

3

Who is affected by CVE-2012-4548?

CVE-2012-4548 affects users of cgit versions 0.9.0.3 and earlier that allow file additions by remote authenticated users.

4

What type of vulnerability is CVE-2012-4548?

CVE-2012-4548 is an argument injection vulnerability related to command execution via the highlight command.

5

Can CVE-2012-4548 be exploited remotely?

Yes, CVE-2012-4548 can be exploited by remote authenticated users with permissions to add files.

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