During the visit, he inquired about the child's condition and directed the hospital authorities to ensure the highest level of medical care.
Senior CMH officials were present.
Earlier, upon learning about the incident on March 6, the adviser spoke to the child's mother over phone, assuring the government support for the victim's treatment.
The child from Magura was transferred to CMH from Dhaka Medical College Hospital yesterday for better treatment.
Regarding the case, the adviser said that police have arrested four accused after a case was filed with Magura Sadar Police Station.
He added that the home ministry remains vigilant to ensure the perpetrators do not escape justice.
He further instructed law enforcement to take a strict stance against sexual violence and expedite investigations into all cases of violence against women.
He assured that those involved in recent rape cases would be brought to justice and face severe punishment.
"The government is committed to ensuring that women can move freely and safely in society. Anyone obstructing their rights or committing violence will be held accountable," he said.
The adviser urged society to remain vigilant against violence against women and emphasised the need to uphold family, social, and moral values.