Cannabigerol (CBG), a phytocannabinoid, has shown promise in pain management. Previous studies by our research group identified an increase in pain sensitivity as a consequence of prenatal hypoxia-ischemia (HI) in an animal model. This study aimed to investigate the efficacy of CBG in acute and chronic hyperalgesia induced by prenatal HI. A pharmacological screening was first conducted using hot plate and open-field tests to evaluate the antinociceptive and locomotor activities of animals administered with a 50 mg/kg oral dose of cannabis extract with a high CBG content. Prenatal HI was induced in pregnant rats, and the offspring were used to evaluate the acute antinociceptive effect of CBG in the formalin-induced peripheral pain model, while chronic antinociceptive effects were observed through spinal nerve ligation (SNL) surgery, a model used to induce neuropathic pain. Our results show that CBG exhibited an antinociceptive effect in the hot plate test without affecting the animals’ motor function in the open-field test. CBG significantly reduced formalin-induced reactivity in HI offspring during both the neurogenic and inflammatory phases. CBG treatment alleviated thermal and mechanical hypernociception induced by SNL. Biomolecular analysis revealed CBG’s ability to modulate expression, particularly reducing TNFα and Nav1.7 in HI male and female rats, respectively. These results highlight CBG as a potential antinociceptive agent in acute and chronic pain models, suggesting it as a promising therapeutic option without inducing motor impairment. Further research is needed to fully elucidate its mechanisms and clinical applications in pain management.