Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-105968 — Runnable proof-of-concept reproducer for CVE-2026-105968, demonstrating substring role matching in Apache Camel camel-netty-http security constraints on Spring Boot and Quarkus. | Kitploit
Tools/GitHubGitHub/oscerd/cve-2026-105968
Authentication & AuthorizationDefensive ToolsVulnerability AnalysisExploitationWeb Application ExploitationLearning & Education
GitHuboscerd/cve-2026-105968

CVE-2026-105968

Runnable proof-of-concept reproducer for CVE-2026-105968, demonstrating substring role matching in Apache Camel camel-netty-http security constraints on Spring Boot and Quarkus.

View Repository
14h 55m agoNot yet reviewed
Share

CVE-2026-105968 - camel-netty-http: security-constraint roles matched by substring

Runnable proof-of-concept reproducer for the Apache Camel vulnerability where the roles declared in a camel-netty-http security constraint were compared to the authenticated roles using substring matching rather than exact comparison:

// affected: HttpServerChannelHandler.matchesRoles()
for (String userRole : ObjectHelper.createIterable(userRoles)) {
    if (roles.contains(userRole)) {      // the CONSTRAINT string searched for the CALLER's role
        return true;
    }
}

A role whose name merely contained a required role as a substring therefore satisfied a constraint it should not, so a caller could reach a route whose authorization it was not entitled to pass.

RuntimeDirectoryStack
Camel Spring Bootcamel-spring-boot/Spring Boot 3.5.13 + camel-netty-http 4.22.1
Camel Quarkuscamel-quarkus/Camel Quarkus 3.39.0 (Quarkus 3.39.0, Camel 4.22.0)

Camel Quarkus 3.40.1 and later already carry the fixed Camel 4.22.2; 3.40.0 (Camel 4.22.1) is still affected.

Run it

cd camel-spring-boot          # or: cd camel-quarkus
mvn clean package
docker compose up -d --build
until [ "$(curl -s http://localhost:8080/exploit/ready)" = "Started" ]; do sleep 1; done
curl -s http://localhost:8080/exploit/attack
docker compose down

Output on an affected build (identical on both runtimes):

Wiring check, so the verdict below means something:
  endpoint                : http://0.0.0.0:8081/api
  securityConfiguration   : attached
  authenticate / scheme   : true / Basic
  securityConstraint      : set
  roles required for /admin: superuser   (relative to the endpoint path)

1) No credentials at all
     HTTP 401  refused

2) root, whose role IS 'superuser' - the intended caller
     HTTP 200  ADMITTED

3) alice, whose only role is 'user' - a substring of 'superuser'
     HTTP 200  ADMITTED

4) CONTROL - guest, whose role 'guest' is not a substring of 'superuser'
     HTTP 401  refused

5) CONTROL - the excluded /api/public path, anonymously
     HTTP 200  ADMITTED  (the constraint machinery is live and this path is meant to be open)

>>> PROVEN: ...

'superuser'.contains("user") is true, so alice, who holds only the ordinary user role, reaches a route restricted to superuser. Because the whole comma-separated constraint string is searched, a role that matches across the separator would do just as well.

Why the wiring check is printed first

A netty-http route whose securityConfiguration failed to attach answers 200 to everything, which looks exactly like a total authorization bypass. The driver therefore prints what the running endpoint actually has attached, and the two controls (anonymous and the unrelated guest role, both 401) show the check is live. Only the substring relationship grants the access.

Note for anyone adapting this: security-constraint paths are relative to the endpoint URI. HttpServerChannelHandler.extractTarget() strips the consumer's own path before matching, so the route listens on /api with matchOnUriPrefix=true and the constraint is declared as /admin. Declaring the constraint as the consumer's full path matches nothing, leaves the route unrestricted, and produces a convincing-looking but meaningless "bypass".

How it is wired

No identity provider and no network. A SecurityAuthenticator stands in for the user directory with three accounts, each holding the single role its name suggests:

accountrolerelationship to the required superuser
rootsuperuserthe role the constraint asks for
aliceusera substring of it
guestguestunrelated

The real NettyHttpSecurityConfiguration, the real SecurityConstraintMapping and the real HttpServerChannelHandler run; the driver makes ordinary HTTP Basic requests and reports the status codes.

Vulnerability Summary

PropertyValue
Componentcamel-netty-http (HttpServerChannelHandler.matchesRoles())
CWEAuthorization bypass through an incorrect role comparison
SeverityMedium
Attack vectorAuthenticating with a role whose name is a substring of a role the constraint requires
ImpactReaching a route whose authorization the caller was not entitled to pass
Affected Versions4.0.0 before 4.18.6; 4.19.0 before 4.22.2
Fixed Versions4.18.6, 4.22.2, 4.23.0
JIRACAMEL-25376
CreditAndrea Cosentino from Apache Software Foundation

Advisory: https://camel.apache.org/security/CVE-2026-105968.html

The fix

Constraint roles are parsed into a set of names and compared by exact value:

Set<String> names = roleNames(roles);
for (String userRole : ObjectHelper.createIterable(userRoles)) {
    if (names.contains(userRole.trim())) {
        return true;
    }
}

Checking a fixed build

Set camel.version to 4.22.2 and run it again. Verified against 4.22.1 -> 4.22.2:

2) root, whose role IS 'superuser'        HTTP 200  ADMITTED
3) alice, whose only role is 'user'       HTTP 401  refused
4) CONTROL - guest                        HTTP 401  refused
5) CONTROL - /api/public anonymously      HTTP 200  ADMITTED

>>> NOT reproduced: the 'user' role was refused.

The intended caller still gets in and the public path stays open, so the fix closes the bypass without breaking the constraint.

Disclaimer

This repository is published for educational and defensive purposes: to help Apache Camel users understand the vulnerability, verify whether they are affected, and confirm that upgrading resolves it. Do not use this material against systems you do not own or operate.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    931
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    449
  • 4

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    411
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    374
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    348

Explore all tools

Browse our collection of tools

View all tools →