You can enter the Green Card Lottery even if you have petitions pending, such as a relative's or employer's petition for work permits, visas, etc. Entering the Visa Lottery does not adversely affect current or past petitions and does not jeopardize your current US visa status.
The information you provide on the DV Lottery application remains confidential and will not be shared with other government offices or agencies. Your participation in the Visa Lottery will not negatively affect any future visa petitions.
Participating in the Green Card Lottery involves zero risk.