A cube is a three-dimensional geometric shape with six equal square faces, twelve equal edges, and eight vertices. All angles in a cube are right angles, making it a special case of a cuboid. A cuboid, on the other hand, is a three-dimensional shape that has six rectangular faces, and while all cubes are cuboids, not all cuboids are cubes. Cuboids can have varying lengths, widths, and heights, whereas a cube maintains equal dimensions across all sides.