[step:Choose a logarithm chart containing the whole path]
By [Exponential Is A Local Diffeomorphism][citetheorem:8791], there are neighbourhoods $U\subset\mathfrak g$ of $0$ and $V\subset G$ of the identity matrix $I\in G$ such that
\begin{align*}
\exp|_U:U\to V
\end{align*}
is a diffeomorphism with inverse denoted
\begin{align*}
\log:V\to U.
\end{align*}
Since multiplication
\begin{align*}
m:G\times G\to G,\qquad (g,h)\mapsto gh
\end{align*}
and the exponential map are smooth, the map
\begin{align*}
F:\mathfrak g\times\mathfrak g\times[0,1]\to G,\qquad (A,B,t)\mapsto \exp A\exp(tB)
\end{align*}
is continuous. Also $F(0,0,t)=I$ for every $t\in[0,1]$. For each $t_0\in[0,1]$, continuity of $F$ at $(0,0,t_0)$ gives neighbourhoods $P_{t_0},Q_{t_0}\subset\mathfrak g$ of $0$ and an open interval $J_{t_0}\subset\mathbb R$ containing $t_0$ such that
\begin{align*}
F(P_{t_0}\times Q_{t_0}\times(J_{t_0}\cap[0,1]))\subset V.
\end{align*}
The intervals $J_{t_0}\cap[0,1]$ cover $[0,1]$, so compactness gives finitely many points $t_1,\dots,t_N\in[0,1]$ whose intervals cover $[0,1]$. Define
\begin{align*}
U_X:=\bigcap_{j=1}^{N}P_{t_j},\qquad U_Y:=\bigcap_{j=1}^{N}Q_{t_j}.
\end{align*}
Then $U_X$ and $U_Y$ are neighbourhoods of $0$ in $\mathfrak g$, and
\begin{align*}
F(U_X\times U_Y\times[0,1])\subset V.
\end{align*}
Fix $X\in U_X$ and $Y\in U_Y$. Then the map
\begin{align*}
Z:[0,1]\to\mathfrak g,\qquad t\mapsto \log(\exp X\exp(tY))
\end{align*}
is smooth, because it is the composition of the smooth path $t\mapsto\exp X\exp(tY)$ with the smooth chart inverse $\log:V\to U$.
[/step]