This study experimentally investigated the fire characteristics of endwall-attached fire within the long-narrow compartment, including the flame extension and temperature profile. Experiments were conducted in a reduced scaled compartment featuring multiple lateral openings. Results show that the previous models of flame extension length and temperature rise in the literatures, whether for sidewall fires in tunnels or central fires in compartments with lateral openings, cannot predict the experimental data in this study. A new correlation is proposed for the flame extension length based on non-dimensional heat release rate. The longitudinal temperature profile generated by endwall-attached fires in compartment can be classified into three distinct regions related to the position of the lateral opening: temperature rapid decrease region, temperature slow decrease region, and backflow region at the end of the compartment. A model for the maximum temperature rise and a piecewise equation based on single exponential function for temperature decay profile are proposed, and these equations effectively correlate the experimental data. The findings of this study can deepen the understanding of fire dynamics within similar building structures and have value for the fire hazard assessment.