Vulnerability Details CVE-2023-6395
                The Mock software contains a vulnerability wherein an attacker could potentially exploit privilege escalation, enabling the execution of arbitrary code with root user privileges. This weakness stems from the absence of proper sandboxing during the expansion and execution of Jinja2 templates, which may be included in certain configuration parameters. While the Mock documentation advises treating users added to the mock group as privileged, certain build systems invoking mock on behalf of users might inadvertently permit less privileged users to define configuration tags. These tags could then be passed as parameters to mock during execution, potentially leading to the utilization of Jinja2 templates for remote privilege escalation and the execution of arbitrary code as the root user on the build server.
                
                    Exploit prediction scoring system (EPSS) score
                    
                        
                            EPSS Score 0.004
                        
                    
                    
                        
                            EPSS Ranking 61.0%
                        
                    
                 
                
                    CVSS Severity
                    
                        
                            CVSS v3 Score 6.7
                        
                    
                    
                 
                
                
                
                    
                
                
                    
                        Products affected by CVE-2023-6395
                        
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0
                                        
                                     
                                 
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0
                                        
                                     
                                 
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:9.0
                                        
                                     
                                 
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:a:rpm-software-management:mock:-
                                        
                                     
                                 
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:o:fedoraproject:fedora:38
                                        
                                     
                                 
                            
                                
                                - 
                                    
                                    
                                        
                                            cpe:2.3:o:fedoraproject:fedora:39