A versatile EGSnrc Monte Carlo (MC) framework, initially designed to explicitly simulate X-ray tubes and record the output data into phase space data files, was modified towards dental cone-beam computed tomography (CBCT) dosimetric applications by introducing equivalent sources. Half value layer (HVL) measurements were conducted to specify protocol-specific energy spectra. Air kerma measurements were carried out with an ionisation chamber positioned against the X-ray tube to obtain the total filtration attenuation characteristics. The framework is applicable to bowtie and non-bowtie inherent filtrations, and it accounts for the anode heel effect and the total filtration of the tube housing. The code was adjusted to the Promax 3D Max (Planmeca, Helsinki, Finland) dental CBCT scanner. For each clinical protocol, calibration factors were produced to allow absolute MC dose calculations. The framework was validated by comparing MC calculated doses and measured doses in a cylindrical water phantom. Validation results demonstrate the reliability of the framework for dental CBCT dosimetry purposes.