Context. The scientific community employs complicated multiphysics simulations to understand the physics in solar, stellar, and interstellar media. These must be tested against known solutions to ensure their validity. Several well-known tests exist, such as the Sod shock tube test. However, a test for nonlinear diffusivity is missing. This problem is highly relevant in the solar atmosphere, where various events release energy that subsequently diffuses by Spitzer thermal conductivity. Aims. The aim is to derive an analytical solution for nonlinear diffusivity in 1D, 2D, and 3D, which allows for a nonzero background value. The solution is used to design a test for numerical solvers and study Spitzer conductivity in the solar atmosphere. Methods. There exists an ideal solution assuming zero background value. We performed an analytical first-order perturbation of this solution. The first-order solution was first tested against a dedicated nonlinear diffusion solver, whereupon it was used to benchmark the single- and multifluid radiative magnetohydrodynamics code Ebysus, used to study the Sun. The theory and numerical modeling were used to investigate the role of Spitzer conductivity in the transport of energy released in a nanoflare. Results. The derived analytical solution models nonlinear diffusivity accurately within its region of validity and approximately beyond. Various numerical schemes implemented in the Ebysus code is found to model Spitzer conductivity correctly. The energy from a representative nanoflare is found to diffuse 9 Mm within the first second of its lifetime due to Spitzer conductivity alone, strongly dependent on the electron density. Conclusions. The analytical first-order solution is a step forward in ensuring the physical validity of intricate simulations of the Sun. Additionally, since the derivation and argumentation are general, they can easily be followed to treat other nonlinear diffusion problems.