Repository navigation
Add the nginxh2 detector for the nginx HTTP/2 pair (CVE-2026-123007, CVE-2026-123633) - #12
Merged
Merged
Conversation
internal/refs/instructions.go, its test and the heredoc bodies in dockerfile.go are taken unchanged from the java4shell branch (PR #9, commit edb2f90), so nginxh2 can read RUN installs the way the builder reads them and the two branches merge without a conflict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2026-123633 The fix commits on 1.31 and 1.30, the releases that brought the code in (1.9.5, 1.19.7), how each build names itself in its binary (read from the official, Debian, Ubuntu, Alpine and OpenResty binaries), and the status of every downstream on 2026-11-18: Docker official images fixed, Debian, Ubuntu, Alpine, OpenResty, Tengine, Angie and the unprivileged image not yet, ingress-nginx archived without a fix, Red Hat not read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s and images (WIP) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es and verdicts; follow symbolic links in include globs A site enabled through a symbolic link (sites-enabled/default -> ../sites-available/default, Debian's layout) was not matched by the include glob, so HTTP/2 on in it read as off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sion comparisons FuzzInspect found a panic: a version line's build text with invalid UTF-8 was lowered with strings.ToLower, which changes its length, and an index into the lowered copy cut the original out of range. Only ASCII letters are lowered now; the input is kept as a regression case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scan repo finds the nginx images a tree names (official, unprivileged, OpenResty, Bitnami, ingress-nginx, F5 NGINX Ingress Controller, Angie; Dockerfile FROM with ARG tags, Compose, Kubernetes, Helm values including the ingress-nginx chart's registry/image/tag, CI), the nginx, OpenResty and Angie packages Dockerfiles install (apt, apk, dnf and yum name-version, dnf modules, through sh -c, subshells, xargs, heredocs, ARG and ENV), the Helm charts that depend on ingress-nginx, and the configurations (files, templates, ConfigMaps) that turn HTTP/2 on. Moving tags and digests are read from the registry on linux/amd64 and linux/arm64. fix moves a tag to the first fixed release of its line and variant after reading the target on each platform judged, checking it is published for every platform the tree builds (or the current tag has) and stays on the same base OS; it declines everything else with the reason, and prints the HTTP/2-off edit as an optional interim step it never applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rity fixtures Alpine published nginx 1.30.7-r0 for 3.24 and edge at 17:06 UTC on the day of disclosure; 3.21 to 3.23 have no fixed package. The source-tree scan now reads the Alpine branch a base image names: an unpinned install on 3.24 or edge is decided at build time (a floor is suggested), on an older branch it is vulnerable, and a pin on 3.24 or edge is moved to 1.30.7-r0 by fix. The F5 NGINX Ingress Controller, like ingress-nginx, writes its configuration at start, so the one on disk does not decide exposure. parity/nginxh2.py builds and scans fixtures for exposure (TLS, cleartext, off, static, templates, -c, unread includes), hostile configurations, patched binaries (no version line, renamed, a version line alone edited, no HTTP/2), Debian, Ubuntu and Alpine packages, a filesystem export, a source tree and fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Official images before and after the fix on both lines and in perl, otel and alpine variants, on arm64 and 386, the 1.19.6 / 1.19.7 boundary of CVE-2026-123633, 1.18.0, 1.10.3, nginx-unprivileged, OpenResty, Bitnami, the ingress-nginx controller and the F5 NGINX Ingress Controller before and after 5.8.0, and fix against the registry. Tags before 1.10 are schema 1 manifests that no current client reads; the 1.9.5 boundary is covered by unit tests and a synthetic case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each of these could report "not exposed", or drop a reference, where the evidence did not support it: - template variables: the official entrypoint's substitution is applied with the image's environment; a variable left in listen or http2, or an http2 value other than on or off, makes exposure unknown - below a system root, include globs read the directory from disk with symbolic links (Debian's sites-enabled), follow links inside the root, and an unlistable directory leaves the list incomplete - a glob through a symbolically linked directory is complete only if the real directory is one the scan reads whole - globs follow glob(3): [!x] negates, wildcards skip dot files, a bad pattern is incomplete - nginx's socket semantics: ssl and http2 on any listen of a port, and the default server's http2 on, count for every server on it; a server without listen also counts *:8000 - -p moves a relative compiled-in configuration path; nginx started from a sh -c text is read, and one that cannot be read makes exposure unknown - a pulled image read in part whose servers were all fixed, and an nginx image with no nginx recognised, are reported as not checked - fix declines when the current tag's platforms cannot be listed (unless --platform names them) and when a single image would replace an index - the package databases and entrypoint scripts kept have a total cap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ever reads an unread include as off Review 2, finding 1: with --as-root (or at /), an include that could not be read (a mode 000 file or directory) was missing from what the detector kept, and a glob over it read as complete, so HTTP/2 read as off. The engine now hands a SkipVisitor scan the walk's not-scanned records, with paths inside the system root, before Finish. nginxh2 treats any such path, or a directory above it, as an unread include: exposure unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…x was read Review 2, finding 2: an image whose command does not start nginx itself (/init, a start script, forego, supervisord, a wrapper), a sh -c text that runs anything else first (sed, envsubst), or a custom script in /docker-entrypoint.d had the image's default configuration trusted, and read as not exposed. Now: - nginx's own option parsing is followed (-qc file, -cfile, -p, -g), and -g directives' includes are loaded like any other; - a sh -c text is read with quotes, escapes and line continuations; any command other than nginx (after exec, set, assignments), a substitution or a redirection makes exposure unknown; - the official entrypoint is trusted with its own four scripts only; - tini, dumb-init, env and exec pass through; any other wrapper, or no command, makes exposure unknown; - on a host, each binary's start command is its systemd unit's ExecStart with drop-ins applied; none, or several that differ, is unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n leaves its exposure unknown Review 2, finding 3: scan repo read a moving tag's image and reported its own configuration's exposure (not exposed) at a Compose service that runs nginx -c with a mounted conf.d. A Compose service or Kubernetes container that sets command, entrypoint, args, volumes, volumeMounts, configs or environment, and a Dockerfile stage that builds on the image (COPY, RUN, CMD, ENV and the like after FROM), now make a weaker exposure from the image unknown, with the reason, at high severity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a directive, leave exposure unknown
Review 2, finding 4: listen ${NGINX_LISTEN}; listen 443${H2OPTS}; and a
placeholder ${EXTRA_HTTP} directive read as HTTP/2 off. Every listen
argument, the address included, and any directive name that is a
variable now make exposure unknown, as FACTS.md says.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ixed Review 2, finding 5: nginx/37.0.0, nginx/37.0.7 and nginx/2.0.0 read as fixed (a line after 1.31 'branched after the fix'), and the tag nginx:37.0.0 was cleared in a source tree. NGINX Plus now numbers its releases 37.x, so such a version line may be Plus's. A line above the newest known one (1.31; 37.3 for Plus's numbered releases; 5.8 for the F5 controller) is now unknown; Plus is judged only by its own rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on an older core is judged by its code Review 2, finding 6: a 1.9.7 build (no module list before 1.9.11) whose 4,451 bytes of configure arguments ended in --with-http_v2_module was cut at 4 KiB and cleared as built without HTTP/2. Now the configure arguments are read to their end (up to 64 KiB) and "no HTTP/2" needs them whole and the module list present; anything less is unknown. A build with HTTP/2 on a core older than nginx's own (1.9.5) is a vendor backport: NGINX Plus R7 on 1.9.4 and the like are unknown, not cleared. Tengine 2.1.2 to 2.2.x on cores 1.6.2 and 1.8.1, read in their one-line form (Tengine/2.2.2 (nginx/1.8.1)), carry nginx's unfixed flow-control code and predate the reuse change (alibaba/tengine source; it came with 2.4.0). Tengine's newest tag is reported as 3.2.0-rc5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review 2, finding 7: a 1 MB file of short directives included 62 times (2 MB on disk, under every per-file cap) was parsed 62 times and took 3.85 GB and 90 s. The loader now has one token budget for every file it parses, each time it is included (2 Mi tokens), and 16 MiB of bytes in total; past either the configuration is not read in full and exposure is unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review 2, finding 8: with --platform linux/amd64,linux/arm64, FROM --platform=linux/riscv64 nginx:1.31.8 was moved to 1.31.9, which had no riscv64 image, and the summary said it was published for every platform it must have. The FROM line's platform is now the one verified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review 2, finding 9. Each of these gave no finding at all: - an image whose last path segment holds nginx but is no family the detector reads tags of (registry.example.com/nginx, a Harbor mirror, cgr.dev/chainguard/nginx), and Tengine, Kong and APISIX images: now a not-checked note, read from the registry when online; - COPY --from=nginx:1.31.8 and RUN --mount=...,from=: judged like a FROM, never edited by fix; an unresolved one is recorded as not checked; - nginx module packages (libnginx-mod-*, nginx-module-*), certbot's nginx plugin and Angie PRO: not-checked notes; - a Dockerfile, Compose file or other file the scan reads that is a symbolic link: recorded as not checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… to reach an upstream Review 2, lows 10 to 12: - include conf.d/[[:digit:]]*.conf missed 10-site.conf; glob(3)'s character classes are now read, and an unknown one leaves the list incomplete; - a site enabled through a hard link (an image layer's tar link) was not read; hard links are followed like symbolic links; - "HTTP/2 without a proxy" knew six *_pass directives; Lua handlers (cosockets, balancer), njs, redis/redis2/postgres/drizzle_pass, auth_request, mirror and perl now count as reaching an upstream. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… moving a pin, labels the F5 move Review 2, lows 13 to 15: - the verifier is memoised per image pair and platform list, so three identical FROM lines read the images once; the unused pullTimeout is gone; - an apk pin is moved only after reading the branch's main APKINDEX (through the guarded transport): to the build it lists, only when that build is fixed, newer than the pin and on the pin's line; offline it is declined. alpine:edge's nginx=1.31.8-r0 is no longer moved down to 1.30.7-r0; - the F5 controller's move from 5.7 to 5.8.0 is called a minor upgrade of the same variant, not the same line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review 2, lows 16 and 17: - a fixed verdict "reports a version with the fix" (it rests on the version alone); a backport row is "the build the distribution lists as fixed"; an unpinned nginx.org install no longer says what a build from a date gets (nginx.org's pages were not read), and Alpine's says what its index listed; - a YAML file that stops decoding, or holds more than 1,024 documents, is recorded as not checked instead of read up to the error in silence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he start command and the package databases Review 2, low 18. FuzzSource found a panic in the glob(3) character class reader added for low 10: "[:]" closed on its own opening. The closing ":]" is now looked for after the opening; the input is kept as a regression case. FuzzStart and FuzzDatabases found nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… facts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nginx ubuntu-pkg, alpine-pkg, alpine-3.23-pkg (a shell) and bitnamilegacy-1.29.1 (Bitnami's entrypoint script) now expect unknown exposure, unless the configuration shows HTTP/2 on, after review 2, finding 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every row was produced by the round-2 build; the registry rows were rerun in batches after Docker Hub's anonymous pull limit stopped a full run part way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nginx.org's advisories and the 1.31.9 CHANGES entry (dated 18 Nov 2026, credits), Red Hat's CVE-2026-123007 page (CVSS 3.1 8.1, CWE-787, Bugzilla 2575895, no fixed products or errata; the CVE-2026-123633 page returned 404), Ubuntu's CVE-2026-123007 page (priority High, vulnerable 16.04 to 26.10, 14.04 not affected, no fixes) and the Debian tracker (no DSA or DLA). The Red Hat row moves from "not read" to "not fixed". No code change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, or exposure is unknown Verification 2: below a system root a drop-in outside the walk was not read; an unreadable unit, drop-in or drop-in directory was passed over; a unit in /etc/systemd/system that is a symbolic link was ignored for the /usr/lib one; and an ExecStartPre script that writes the configuration read as not exposed. Units and drop-ins now come from the walk, the links and the not-scanned records, and below a system root from the unit directories on disk; the first directory with a unit wins, links are followed inside the target, a unit linked to /dev/null is masked. A unit, drop-in or directory that was not read, or an ExecStartPre, ExecStartPost or ExecCondition other than an nginx test (-t, -T), makes exposure unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m charts, Compose overrides and extends Verification 3: these still reported a pulled image's own "not exposed": - FROM nginx:1.29 AS base / FROM base / COPY h2.conf: the change is now recorded at the FROM that names the image, through any chain of stage aliases; - Helm values naming nginx: unknown when the chart's templates set volumeMounts, command, args or env, or are not in the tree; - Compose: a docker-compose.override.yml (or compose.override.yaml) that changes the service, extends and volumes_from; - a GitLab CI service with command, entrypoint or variables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hole tokens
Verification 4 (a regression from review 2, finding 4): a map key ending
in $ (~*(bot|crawler)$) made exposure unknown in any configuration. The
check now passes over map, geo, split_clients, types and charset_map
blocks, which hold keys and values, and takes a directive name as a
placeholder only when it is one ${NAME} or $NAME and nothing else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verification 5: Tengine 2.2.2 (core 1.8.1) or NGINX Plus R7 (core 1.9.4) with cut configure arguments or no module list read as not affected by the core's age. A fork may carry HTTP/2 on such a core (Tengine 2.1.2 to 2.2.x do), so without a whole witness these are now unknown. Plain nginx before 1.9.5, whose source has no HTTP/2, stays not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verification 6: in sh -c "nginx -t && sed -i ... && nginx -g 'daemon off;'" the first nginx was taken as the start, so the sed after it went unseen. Calls with -t, -T, -v, -V, -s, -h or -? are passed over (the sed is then seen and makes exposure unknown); a container command that only tests nginx is unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verification 7: - once the loader passes its byte, token or file limit it reads no further file (one record says so), so 220,000 include lines of a large file no longer read it from disk 220,000 times; - include globs look up the directory they name in an index (files, links, not-scanned records, files too large), built once, instead of matching every link of the target; a disk directory is listed once; globs with a wildcard in their directory part, which match every path, are capped at 64 per target and are incomplete past it (and below a system root); - the below-root branch no longer drops a not-scanned record found earlier in the same glob. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a tag on a line newer than any known (nginx:1.32.0, nginx-ingress:5.9.0) says so in its fix text, instead of "received no fix" or "not on the 5.x line"; - a pulled image whose exposure a deployment makes unknown no longer keeps the image's http2: off fact; - the verifier names where the platforms it needs came from (the FROM line's --platform, or the tree's --platform); - an engine-level test of SkipVisitor: the walk's gaps reach the scan before Finish with paths inside the system root, at and below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…before trusting it Round-3 verification 1: a relative entrypoint word was looked up at /, so ENTRYPOINT ["./docker-entrypoint.sh"] with WORKDIR /app, or ["docker-entrypoint.sh"] found through PATH in /usr/local/bin, was taken for the official /docker-entrypoint.sh when that file was still there. The image's working directory now reaches detectors (image.Opened WorkingDir, and an optional engine.WorkingDirer on the image's target context). A word with a slash is resolved against the working directory, a bare name through the image's PATH (Docker's default when it sets none); one that resolves to nothing makes exposure unknown, and the content check applies to the file it resolves to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…follow does Round-3 verification 2: /docker-entrypoint.d/extra -> /opt/scripts was taken for a file the entrypoint ignores (no .sh suffix), but find -follow descends into it and runs what it holds. The walk now follows links to directories (64 at most, loops stopped), every .sh and .envsh it reaches must be read and official, and a link that leads to nothing the scan read makes exposure unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… harmless commands around the start
Round-3 verification 3: nginx.org's pkg-oss unit (ExecStart=/usr/sbin/nginx
-c ${conffile} $cmdopts, Environment="conffile=...", EnvironmentFile=-
/etc/sysconfig/nginx) had ${conffile} read as a literal path, so an
exposed host read unknown. Environment= and EnvironmentFile= are applied
as systemd applies them (the file overrides, $NAME splits into words,
${NAME} is replaced in place, unset is empty). /etc/sysconfig and
/etc/default are kept whole; an EnvironmentFile not read, a required one
that is not there, or an optional one outside what the scan reads makes
exposure unknown.
Round-3 verification 4: ExecStartPre=/usr/bin/rm -f /run/nginx.pid (the
RHEL and Fedora unit, from the review; not confirmed here) made "not
exposed" impossible. rm -f of the pid file (PIDFile= or *.pid) and nginx
tests pass; any other command still makes exposure unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-3 verification 5: templates/web/deploy.yaml with volumeMounts left the values' image at its own not exposed; only files directly in templates/ were read. The templates are now walked recursively (4,096 at most); a template that cannot be read, a symbolic link among them or more than the limit makes exposure unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-3 verification 6: every unit directory and drop-in directory looked through every link, file and not-scanned record of the target, so 3,000 units with 150,000 links took about 90 s. The names under the unit directories are now indexed once per scan and looked up. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-3 verification 7: include /opt/app/conf/vhosts/*/site.conf read exposed with --as-root and unknown with --root DIR DIR/opt, where such globs returned nothing. Below a system root they now walk the disk one part at a time with glob(3) matching (directories and links to them for the middle parts, files for the last), at most 20,000 entries; a directory that cannot be listed or that the walk did not read leaves the list incomplete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-3 nit: "... which the FROM line's --platform (it may ..." had no verb. It now says which the current tag has, or which the tree's or the FROM line's --platform needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ypoint walk Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…configuration file were read Round-4 verification (job 1118-184956-3834), converging rule, closing findings 1 to 4. Exposure stays "not exposed" (and its severity drops) only when all of this holds; otherwise it is unknown: - the start is the nginx binary itself, or the official image's entrypoint (by SHA-256 of its content) given nginx or nginx-debug as its first argument; tini, env, a shell, any other wrapper are trusted by nothing the scan can check, so they are unknown (the sh -c reader is gone). The word that starts nginx is resolved as the runtime resolves it (working directory, PATH, links; a PATH search stops at the first entry that exists, link or not) and must land on the binary judged: a wrapper named nginx earlier on PATH, or ./nginx, is unknown (finding 2, finding 3). - every file reachable in /docker-entrypoint.d, whatever its name, size or first line, is recorded and kept as the walk sees it, and must have been read and be one of the official scripts by content; a directory link leading out of it is unknown (finding 1). The answer is computed once per scan. - templates are written only when the official entrypoint runs and is given nginx or nginx-debug, as it does (finding 4). - every configuration file was read, as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of the round-5 rule: a template directory outside what the scan reads whole, or NGINX_ENVSUBST_FILTER (which narrows the variables the entrypoint puts in), makes exposure unknown instead of applying the templates as if they were complete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…plete Round-4 verification 5: below --root, the disk glob followed a link with an absolute target in the scanner's own filesystem, failed, and dropped it; a permission error on a directory was dropped too. Links are now kept as candidates for Read, which resolves them inside the root or reports them as not read; a linked directory on the way, or any error other than "does not exist", leaves the list incomplete. Round-4 verification 6: in an image or with --as-root, a wildcard- directory include through a linked directory matched nothing and read as complete. A link on the pattern's path (its starting directory or below) now leaves it incomplete. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-4 verification 7 (the walk went quadratic in links, once per binary) is fixed by the round-5 rule's walk, which is answered once per scan and cached per word: 100,000 links and 9 binaries take well under a second. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nknown Round-4 verification 8, 9, 10 and the PassEnvironment nit, under the round-5 rule: - a command around the start is harmless only as /bin/rm or /usr/bin/rm of the pid file, or a test by the very binary ExecStart runs; each of ExecStartPre, ExecStartPost and ExecCondition keeps its own list, so an empty one resets only itself; - a specifier (%) in an Exec, Environment, EnvironmentFile or PIDFile value, a glob in an EnvironmentFile path, a continued line, more than one ExecStart, an @, | or : prefix that changes how a line runs, and PassEnvironment, UnsetEnvironment, RootDirectory, RootImage, MountImages, ExtensionImages, ExtensionDirectories, BindPaths, BindReadOnlyPaths or TemporaryFileSystem are unknown; - an environment file line is no longer rewritten: "export", a continued line, an escape, a variable or an inner quote is unknown; - below --root, an optional environment file that is there but cannot be read is unknown, not absent; a unit or environment file over the kept size is recorded as not read instead of dropped; - a variable the unit does not set is empty only when the manager's settings were read and set no DefaultEnvironment= or ManagerEnvironment=, and no environment generator is there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-4 verification nits: templates under charts/<sub>/templates render with the chart, so they are read like its own; a packaged subchart (.tgz) is not read and leaves the deployment unknown. A linked chart file is named by its path in the tree, not the host's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-4 verification nit: the fuzz gave the entrypoint fuzzed content, which is never official, so the walk of /docker-entrypoint.d was never run. It now runs the official entrypoint with a fuzzed file and links in the directory, and fails if a file that is not official passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round-4 verification 9 (wording): unit environment is no longer said to be applied "as systemd applies them"; FACTS lists the plain forms read and every setting that leaves exposure unknown, the strict start rule, the entrypoint directory and template conditions, and how globs below a system root treat links and directories that cannot be listed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…known The official images install nginx-debug but their command starts /usr/sbin/nginx, so under the round-5 rule (the start must resolve to the very binary judged) nginx-debug is no longer cleared: its exposure is unknown, or exposed when what it would load turns HTTP/2 on. 17 cases' nginx-debug rows move accordingly; the nginx rows are unchanged. The reason now says which binary the command starts. 39/39 cases match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #9 (bcf0f20): the java4shell detector, the engine's HeadVisitor, Limiter, LimitVisitor, FinishSkipper, UnreadVisitor and Forgetter, one skip record per path, layer flattening, and the sshole, emudhra, brotli and php2shell changes. Conflicts, each resolved by keeping both sides: - README.md: the java4shell and nginxh2 rows, examples, layout, parity and fuzz lines; the "written here" sentence names both detectors. - detectors/all/all.go: both imports, in order. - internal/engine/engine.go: nginxh2's WorkingDirer and SkipVisitor next to #9's new interfaces. - internal/engine/run.go: finish keeps nginxh2's visitSkips call and #9's FinishSkips and one-record-per-path merge; ScanImage sets both the working directory and the unresolved-paths hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After the merge of #9 a path can have several records (two detectors that failed on it, a source record and a detector's), and the target merges them in finish. A SkipVisitor now gets them merged the same way, once per path with every reason. The gaps are taken once, before any Finish: a gap another detector reports at the end (FinishSkipper) is a file over that detector's own limit, which the SkipVisitor was shown, and whether it reached the SkipVisitor depended on detector order. Below the system root the walker's own records (a detector that failed on a file, an over-limit gap) already carry the path inside the root, while the source walk's are below the scanned directory; only the latter are moved into the root now. Before, a detector failure on /etc/nginx/x.conf in a scan of /etc reached nginxh2 as /etc/etc/nginx/x.conf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
nginxh2detector for the nginx HTTP/2 pair disclosed 2026-11-18: CVE-2026-123007 (memory corruption in HTTP/2 flow control, nginx.org severity major, 1.9.5 to 1.31.8) and CVE-2026-123633 (use-after-free in HTTP/2, 1.19.7 to 1.31.8). Fixed in nginx 1.31.9 and 1.30.7; NGINX Plus 37.0.7.1 / 37.2.0.1 / 37.0.8.1 / 37.3.0.1.What it does
Environment=). HTTP/2 over TLS matters for 123007, HTTP/2 in front of a proxy for 123633. "Not exposed" is reported only when the start command, an official entrypoint (by hash) with every/docker-entrypoint.dscript read and official, and every configuration file were all read; anything less is unknown. "Not exposed" is a fact on a finding that stays vulnerable, never a clearance.scan repo: official image variants, nginx-unprivileged, OpenResty, Bitnami, mirrors, ingress-nginx (chart values), the F5 controller, Angie, package installs, and deployments (Compose, Kubernetes, Helm, stage aliases) that change an image's command or configuration. Anything nginx-shaped that cannot be read is reported as not checked.fix: moves tags to the first fixed release of the same line and variant after pulling the target on every platform (including a FROM line's own--platform) and checking the same base OS; Alpine pins move only after reading the branch index. Thehttp2 off;edit is printed as an optional interim step, never applied.SkipVisitor(a detector sees what the walk did not read) andWorkingDirer(an image's working directory); other detectors unchanged.Verification
go vet,go test -race(all but php2shell's SQLite tests, which run in CI), all fuzz targets including seven new nginxh2 fuzzers (added to CI), parity 39/39 for nginxh2 and 43/43 for java4shell after mergingmain.🤖 Generated with Claude Code