Trump promised to cut gas prices below $2 a gallon within his first year in office, but fuel costs have risen sharply instead, according to a CNBC report.

Patrick De Haan, head of petroleum analysis at GasBuddy, said gas and diesel prices are forecast to be the highest ever on an election day. "Prices have never been this high this late in the year," De Haan said.

The report says the national average for gas stood at $4.20 a gallon on Friday, nearly 40% above the same period last year. Diesel has risen about 70% over the past year, to $6.32 a gallon, according to the report.

The report attributes the increase to disruptions after the U.S. and Israel attacked Iran on Feb. 28. Iran then struck tankers transiting the Strait of Hormuz, and oil flows through the route fell sharply. The report also cites Houthi attacks on Saudi refineries and Ukrainian strikes on Russian refineries.

White House spokeswoman Taylor Rogers said in a statement that gas prices will "drop drastically" once the conflict ends. The White House also said gas prices, adjusted for inflation, have been higher around previous election days.

According to the report, Trump issued an executive order allowing truckers to use tax-exempt, offroad diesel on U.S. highways and announced an $8 billion relief program for farmers. He also reached a deal with Russian President Vladimir Putin for Moscow to export about 6 million barrels of diesel through November. Energy analysts quoted in the report said those volumes are small relative to global demand and will not have a meaningful impact on prices. Ukrainian President Volodymyr Zelenskyy and some Republican senators criticized the deal.

Brent crude is up more than 13% in October, and West Texas Intermediate is up 15%, the report says. De Haan said escalation could push prices higher before Thanksgiving.