DHI-7jm6-7jz5-6jkc-bz6f

Source
https://scout.docker.com/v/DHI-7jm6-7jz5-6jkc-bz6f
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7jm6-7jz5-6jkc-bz6f.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-7jm6-7jz5-6jkc-bz6f
Upstream
Published
2026-11-11T15:57:48Z
Modified
2026-11-21T12:30:15Z
Severity
  • 1.7 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
### Summary
Details

Summary

Nokogiri::XML::Document#root= validated only that the new root was a Nokogiri::XML::Node, allowing a DTD node to be set as the document root. The result is a heap use-after-free during garbage collection or finalization, leading to an invalid memory read or potentially a segfault.

Nokogiri 1.19.4 restricts Document#root= to element nodes, raising TypeError for any other node type.

This memory-safety issue affects only the CRuby implementation (libxml2). The JRuby implementation was not affected; the same input validation was added there for behavioral parity.

Severity

The Nokogiri maintainers have evaluated this as low severity. This is only triggered by a programming error. It requires application code to assign a non-element node such as a DTD as the document root via Document#root=. Nokogiri 1.19.4 now raises TypeError instead of allowing a use-after-free. It cannot be triggered by untrusted input or through normal use of the public API.

Mitigation

Upgrade to Nokogiri 1.19.4 or later.

As a workaround, applications that cannot upgrade should avoid assigning a DTD (or any non-element node) via Document#root=.

Credit

This issue was responsibly reported by Zheng Yu from depthfirst.com.

References

Affected packages

Docker Hardened Images:Alpine:3.24 / gitlab-rails-18

Package

Name
gitlab-rails-18
Purl
pkg:apk/dhi/gitlab-rails-18

Affected ranges

Affected versions

18.*
18.11.11-r0
18.11.11-r1
18.11.11-r2
18.11.12-r0
18.11.12-r1
18.11.12-r2
18.11.12-r3
18.11.12-r4
18.11.14-r0
18.11.14-r1
18.11.14-r2
18.11.14-r3
18.11.14-r4
18.11.14-r5
18.11.14-r6
18.11.14-r7
18.11.14-r8
18.11.14-r9
18.11.14-r10
18.11.14-r11
18.11.14-r12
18.11.14-r13
18.11.14-r14
18.11.14-r15

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7jm6-7jz5-6jkc-bz6f.json"

Docker Hardened Images:Alpine:3.24 / gitlab-rails-19

Package

Name
gitlab-rails-19
Purl
pkg:apk/dhi/gitlab-rails-19

Affected ranges

Affected versions

19.*
19.1.8-r0
19.1.8-r1
19.4.1-r0
19.4.1-r1
19.4.1-r2
19.4.1-r3
19.4.2-r0
19.5.3-r0
19.5.3-r1
19.5.3-r2
19.5.3-r3
19.5.3-r4
19.5.3-r5
19.5.3-r6
19.5.3-r7
19.5.3-r8
19.5.4-r0
19.5.4-r1
19.5.5-r0
19.5.5-r1
19.5.5-r2
19.5.6-r0
19.5.6-r1
19.6.0-r0
19.6.0-r1
19.6.1-r0
19.6.1-r1

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7jm6-7jz5-6jkc-bz6f.json"

Docker Hardened Images:Debian:13 / gitlab-rails-19

Package

Name
gitlab-rails-19
Purl
pkg:deb/dhi/gitlab-rails-19

Affected ranges

Affected versions

19.*
19.1.8-0
19.1.8-1
19.4.1-0
19.4.1-1
19.4.1-2
19.4.2-0
19.5.3-0
19.5.3-1
19.5.3-2
19.5.3-3
19.5.3-4
19.5.3-5
19.5.3-6
19.5.3-7
19.5.3-8
19.5.3-9
19.5.4-0
19.5.4-1
19.5.5-0
19.5.5-1
19.5.5-2
19.5.5-3
19.5.5-4
19.5.5-5
19.5.5-6
19.5.5-7
19.5.5-8
19.5.5-9
19.5.5-10
19.5.5-11
19.5.6-0
19.5.6-1
19.5.6-2
19.5.6-3
19.5.6-4
19.5.6-5
19.6.0-0
19.6.0-1
19.6.0-2
19.6.1-0
19.6.1-1
19.6.1-2

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-7jm6-7jz5-6jkc-bz6f.json"