GHSA-hfgr-h3vc-p6c2

Suggest an improvement
Source
https://github.com/advisories/GHSA-hfgr-h3vc-p6c2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-hfgr-h3vc-p6c2/GHSA-hfgr-h3vc-p6c2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hfgr-h3vc-p6c2
Aliases
Related
Published
2023-12-08T14:42:55Z
Modified
2024-02-16T08:24:55.723934Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
DockerSpawner allows any image by default
Details

Impact

Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying DockerSpawner.allowed_images configuration allow users to launch any pullable image, instead of restricting to only the single configured image, as intended.

Patches

Upgrade to DockerSpawner 13.

Workarounds

Explicitly setting DockerSpawner.allowed_images to a non-empty list containing only the default image will result in the intended default behavior:

c.DockerSpawner.image = "your-image"
c.DockerSpawner.allowed_images = ["your-image"]
Database specific
{
    "nvd_published_at": "2023-12-08T20:15:07Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-12-08T14:42:55Z"
}
References

Affected packages

PyPI / dockerspawner

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0.11.0
Fixed
13.0.0

Affected versions

0.*

0.11.0
0.11.1

12.*

12.0.0
12.1.0