CWE
77
Advisory Published
CVE Published
Updated

CVE-2012-4548: Command Injection

First published: Sun 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
cgit by Lars Hjemli<=0.9.0.3
cgit by Lars Hjemli=0.1
cgit by Lars Hjemli=0.2
cgit by Lars Hjemli=0.3
cgit by Lars Hjemli=0.4
cgit by Lars Hjemli=0.5
cgit by Lars Hjemli=0.6
cgit by Lars Hjemli=0.6.1
cgit by Lars Hjemli=0.6.2
cgit by Lars Hjemli=0.6.3
cgit by Lars Hjemli=0.7
cgit by Lars Hjemli=0.7.1
cgit by Lars Hjemli=0.7.2
cgit by Lars Hjemli=0.8
cgit by Lars Hjemli=0.8.1
cgit by Lars Hjemli=0.8.1.1
cgit by Lars Hjemli=0.8.2
cgit by Lars Hjemli=0.8.2.1
cgit by Lars Hjemli=0.8.2.2
cgit by Lars Hjemli=0.8.3
cgit by Lars Hjemli=0.8.3.1
cgit by Lars Hjemli=0.8.3.2
cgit by Lars Hjemli=0.8.3.3
cgit by Lars Hjemli=0.8.3.4
cgit by Lars Hjemli=0.8.3.5
cgit by Lars Hjemli=0.9
cgit by Lars Hjemli=0.9.0.1
cgit by Lars Hjemli=0.9.0.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

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

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

  • What type of vulnerability is CVE-2012-4548?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203