The symmetries of the sdg-IBM, the interacting boson model with s, d and g bosons, are studied as regards the occurrence of shapes with octahedral symmetry. It is shown that no sdg-IBM Hamiltonian with a dynamical symmetry displays in its classical limit an isolated minimum with octahedral shape. However, a degenerate minimum that includes a shape with octahedral symmetry can be obtained from a Hamiltonian that is transitional between two limits, U g (9) ⊗ U d (5) and SO sg (10) ⊗ U d (5), and the conditions for its existence are derived. An isolated minimum with octahedral shape, either an octahedron or a cube, may arise through a modification of two-body interactions between the g bosons. Comments on the observational consequences of this construction are made.