Severe pneumonia caused by respiratory viruses has become a major threat to humans, especially with the SARS‐CoV‐2 outbreak and epidemic. The aim of this study was to investigate the universal molecular mechanism of severe pneumonia induced by multiple respiratory viruses and to search for therapeutic strategies targeting this universal molecular mechanism. The common differential genes of four respiratory viruses, including respiratory syncytial virus (RSV), rhinovirus, influenza, and SARS‐CoV‐2, were screened by GEO database, and the hub gene was obtained by Sytohubba in Cytoscape. Then, the effect of hub genes on inflammasome and pyrodeath was investigated in the model of RSV infection in vitro and in vivo. Finally, through virtual screening, drugs targeting the hub gene were obtained, which could alleviate severe viral pneumonia in vitro and in vivo. The results showed that CMPK2 is one of the hub genes after infection by four respiratory viruses. CMPK2 activates the inflammasome by activating NLRP3, and promotes the releases of inflammatory factors interleukin (IL)‐1β and IL‐18 to induce severe viral pneumonia. Z25 and Z08 can reduce the expression level of CMPK2 mRNA and protein, thereby inhibiting NLRP3 and alleviating the development of severe viral pneumonia. In conclusion, the inflammatory response mediated by CMPK2 is the common molecular mechanism of severe pneumonia induced by viral infection, and Z25 and Z08 can effectively alleviate viral infection and severe pneumonia through this mechanism.