The program would be optional, he said, requiring parents to sign off on their child's participation.
Classes would not demonstrate how to use a gun, Weiler said, but instead would focus on teaching children to contact an adult if they come across a firearm.
"There will be no guns in the classrooms," he said. "It's more, if you happen to encounter a gun, this is what you should and shouldn't do."
He said the driving force behind the bill is the number of stories each year in which a child picks up a gun and accidentally shoots themselves, a parent, a sibling or a friend.
Eighth grade was chosen for the pilot program because at the age students traditionally attend it, 13 and 14, children are more independent and under less supervision than younger ages, Weiler said.
"Even if someone doesn't have a gun in their home," Weiler said, "odds are very likely that a neighbor or a friend's parents do."
The bill also calls for instruction on attacks involving gunmen, but Weiler said that is secondary to teaching students to be cautious and responsible around firearms.
"If we're going to talk about guns while we're in school, I think it would be silly not to be able to mention something about an active shooter situation," he said.
Schools are currently required to develop safety plans and procedures, which typically include training students for fires, earthquakes, health emergencies and evacuations.
And recent legislation has directed schools to hold regular seminars on bullying, suicide prevention, Internet safety and substance abuse.
The State Office of Education coordinates some of those programs, with others held at the discretion and specifications of local school boards, according to Deputy State Superintendent Sydnee Dickson.
She said she was not aware of a specific Utah school running a gun-safety program, but she said such a program is possible, if not likely, under current law.
"Local districts and charters can add anything to state standards," she said.
Weiler's bill would provide $75,000, administered through the Utah attorney general's office, to hire gun safety experts and provide curriculum materials for participating schools.