Bug 870713 (CVE-2012-4548)

Summary: CVE-2012-4548 cgit: syntax-highlighting.sh command injection
Product: [Other] Security Response Reporter: Kurt Seifried <kseifried>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: bressers, tmz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-24 15:56:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 870714, 870715    
Bug Blocks:    
Attachments:
Description Flags
cgit-CVE-2012-4548.patch none

Description Kurt Seifried 2012-10-28 06:59:04 UTC
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

Comment 1 Kurt Seifried 2012-10-28 07:00:46 UTC
Created attachment 634444 [details]
cgit-CVE-2012-4548.patch

Comment 2 Kurt Seifried 2012-10-28 07:01:38 UTC
Created cgit tracking bugs for this issue

Affects: fedora-all [bug 870714]

Comment 3 Kurt Seifried 2012-10-28 07:02:11 UTC
Created cgit tracking bugs for this issue

Affects: epel-all [bug 870715]